OpenTelemetry/Processor.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 use Object::Pad;
2 # ABSTRACT: The abstract interface for OpenTelemetry processors
3  
4 package OpenTelemetry::Processor;
5  
6 our $VERSION = '0.040';
7  
8 # NOTE: Moving this here creates a nice symmetry where we have
9 # OpenTelemetry::{Propagator,Processor,Exporter} at the top-level
10 # and allow for specific implementations to live under them.
11 # We should decide where we expect implementations that are
12 # specific to Traces / Logs / Metrics should live, though.
13 # For now, this ends up giving us
14 # * OpenTelemetry::Trace::Span::Processor
15 # * OpenTelemetry::Logs::LogRecord::Processor
16 # * OpenTelemetry::Metrics::Instrument::Processor (hypothetical)
17 # and the SDK implementations with `::SDK` in there somewhere.
18 role OpenTelemetry::Processor {
19 method process;
20 method shutdown;
21 method force_flush;
22 }