Compliance Matrix
The compliance matrix below is based on the OpenTelemetry Specification template.
Traces
Baggage
| Item | Status | Optional | Evidence |
|---|---|---|---|
| Basic support | + |
Baggage.scala | |
Use official header name baggage |
+ |
W3CBaggagePropagator.scala |
Metrics
| Item | Status | Optional | Evidence |
|---|---|---|---|
The API provides a way to set and get a global default MeterProvider. |
- |
true |
|
It is possible to create any number of MeterProviders. |
+ |
true |
SdkMeterProvider.scala |
MeterProvider provides a way to get a Meter. |
+ |
MeterProvider.scala | |
get_meter accepts name, version and schema_url. |
+ |
MeterProvider.scala, MeterBuilder.scala | |
get_meter accepts attributes. |
- |
||
When an invalid name is specified a working Meter implementation is returned as a fallback. |
+ |
SdkMeterProvider.scala | |
The fallback Meter name property keeps its original invalid value. |
- |
true |
|
Associate Meter with InstrumentationScope. |
+ |
SdkMeterProvider.scala | |
Counter instrument is supported. |
+ |
Meter.scala | |
AsynchronousCounter instrument is supported. |
+ |
Meter.scala | |
Histogram instrument is supported. |
+ |
Meter.scala | |
AsynchronousGauge instrument is supported. |
+ |
Meter.scala | |
Gauge instrument is supported. |
+ |
Meter.scala | |
UpDownCounter instrument is supported. |
+ |
Meter.scala | |
AsynchronousUpDownCounter instrument is supported. |
+ |
Meter.scala | |
Instruments have name |
+ |
Meter.scala | |
| Instruments have kind. | + |
Meter.scala | |
| Instruments have an optional unit of measure. | + |
Meter.scala | |
| Instruments have an optional description. | + |
Meter.scala | |
A valid instrument MUST be created and warning SHOULD be emitted when multiple instruments are registered under the same Meter using the same name. |
+ |
ViewRegistry.scala | |
| Duplicate instrument registration name conflicts are resolved by using the first-seen for the stream name. | - |
||
It is possible to register two instruments with same name under different Meters. |
+ |
SdkMeterProvider.scala | |
| Instrument names conform to the specified syntax. | - |
||
| Instrument units conform to the specified syntax. | - |
||
| Instrument descriptions conform to the specified syntax. | - |
||
| Instrument supports the advisory ExplicitBucketBoundaries parameter. | + |
Histogram.scala, SdkHistogram.scala | |
| Instrument supports the advisory Attributes parameter. | - |
||
All methods of MeterProvider are safe to be called concurrently. |
+ |
SdkMeterProvider.scala, ComponentRegistry.scala | |
All methods of Meter are safe to be called concurrently. |
+ |
SdkMeter.scala, MeterSharedState.scala | |
| All methods of any instrument are safe to be called concurrently. | + |
SdkCounter.scala, SynchronousStorage.scala, SynchronousStorage.scala | |
MeterProvider allows a Resource to be specified. |
+ |
SdkMeterProvider.scala | |
A specified Resource can be associated with all the produced metrics from any Meter from the MeterProvider. |
+ |
SdkMeterProvider.scala | |
The supplied name, version and schema_url arguments passed to the MeterProvider are used to create an InstrumentationLibrary instance stored in the Meter. |
+ |
SdkMeterProvider.scala | |
The supplied name, version and schema_url arguments passed to the MeterProvider are used to create an InstrumentationScope instance stored in the Meter. |
+ |
SdkMeterProvider.scala | |
Configuration is managed solely by the MeterProvider. |
+ |
SdkMeterProvider.scala | |
The MeterProvider provides methods to update the configuration |
- |
true |
|
The updated configuration applies to all already returned Meters. |
- |
if above |
|
There is a way to register Views with a MeterProvider. |
+ |
SdkMeterProvider.scala | |
The View instrument selection criteria is as specified. |
+ |
InstrumentSelector.scala | |
The View instrument selection criteria supports wildcards. |
+ |
true |
InstrumentSelector.scala |
The View instrument selection criteria supports the match-all wildcard. |
+ |
InstrumentSelector.scala | |
The name of the View can be specified. |
+ |
View.scala | |
The View allows configuring the name, description, attributes keys and aggregation of the resulting metric stream. |
+ |
View.scala | |
The View allows configuring excluded attribute keys of resulting metric stream. |
+ |
View.scala | |
The View allows configuring the exemplar reservoir of resulting metric stream. |
- |
true |
|
The SDK allows more than one View to be specified per instrument. |
+ |
true |
ViewRegistry.scala |
The Drop aggregation is available. |
+ |
Aggregation.scala | |
The Default aggregation is available. |
+ |
Aggregation.scala | |
The Default aggregation uses the specified aggregation by instrument. |
+ |
Aggregation.scala | |
The Sum aggregation is available. |
+ |
Aggregation.scala | |
The LastValue aggregation is available. |
+ |
Aggregation.scala | |
The ExplicitBucketHistogram aggregation is available. |
+ |
Aggregation.scala, ExplicitBucketHistogramOptions.scala | |
The ExponentialBucketHistogram aggregation is available. |
+ |
Aggregation.scala, Base2ExponentialHistogramOptions.scala, ExponentialHistogramAggregator.scala | |
| The metrics Reader implementation supports registering metric Exporters | + |
MetricReader.scala, PeriodicMetricReader.scala | |
| The metrics Reader implementation supports configuring the default aggregation on the basis of instrument kind. | + |
PeriodicMetricReader.scala | |
| The metrics Reader implementation supports configuring the default temporality on the basis of instrument kind. | + |
PeriodicMetricReader.scala | |
| The metrics Exporter has access to the aggregated metrics data (aggregated points, not raw measurements). | + |
MetricExporter.scala | |
The metrics Exporter export function can not be called concurrently from the same Exporter instance. |
+ |
PeriodicMetricReader.scala | |
The metrics Exporter export function does not block indefinitely. |
+ |
PeriodicMetricReader.scala | |
The metrics Exporter export function receives a batch of metrics. |
+ |
MetricExporter.scala | |
The metrics Exporter export function returns Success or Failure. |
+ |
PeriodicMetricReader.scala | |
The metrics Exporter provides a ForceFlush function. |
+ |
MetricExporter.scala | |
The metrics Exporter ForceFlush can inform the caller whether it succeeded, failed or timed out. |
- |
||
The metrics Exporter provides a shutdown function. |
- |
||
The metrics Exporter shutdown function do not block indefinitely. |
- |
||
The metrics SDK samples Exemplars from measurements. |
+ |
ExemplarReservoir.scala | |
| Exemplar sampling can be disabled. | + |
ExemplarReservoir.scala | |
| The metrics SDK supports SDK-wide exemplar filter configuration | + |
ExemplarFilterAutoConfigure.scala | |
The metrics SDK supports TraceBased exemplar filter |
+ |
ExemplarFilter.scala | |
The metrics SDK supports AlwaysOn exemplar filter |
+ |
ExemplarFilter.scala | |
The metrics SDK supports AlwaysOff exemplar filter |
+ |
ExemplarFilter.scala | |
| Exemplars retain any attributes available in the measurement that are not preserved by aggregation or view configuration. | + |
ExemplarData.scala | |
| Exemplars contain the associated trace id and span id of the active span in the Context when the measurement was taken. | + |
ExemplarData.scala | |
| Exemplars contain the timestamp when the measurement was taken. | + |
ExemplarData.scala | |
The metrics SDK provides an ExemplarReservoir interface or extension point. |
+ |
ExemplarReservoir.scala | |
An ExemplarReservoir has an offer method with access to the measurement value, attributes, Context and timestamp. |
+ |
ExemplarReservoir.scala | |
The metrics SDK provides a SimpleFixedSizeExemplarReservoir that is used by default for all aggregations except ExplicitBucketHistogram. |
+ |
ExemplarReservoir.scala | |
The metrics SDK provides an AlignedHistogramBucketExemplarReservoir that is used by default for ExplicitBucketHistogram aggregation. |
+ |
ExemplarReservoir.scala | |
| A metric Producer accepts an optional metric Filter | - |
||
| The metric Reader implementation supports registering metric Filter and passing them its registered metric Producers | - |
||
| The metric SDK's metric Producer implementations uses the metric Filter | - |
||
| Metric SDK implements cardinality limit | + |
SynchronousStorage.scala | |
| Metric SDK supports configuring cardinality limit at MeterReader level | + |
CardinalityLimitSelector.scala | |
| Metric SDK supports configuring cardinality limit per metric (using Views) | + |
View.scala |
Logs
| Item | Status | Optional | Evidence |
|---|---|---|---|
| LoggerProvider.Get Logger | + |
LoggerProvider.scala | |
| LoggerProvider.Get Logger accepts attributes | - |
||
| LoggerProvider.Shutdown | - |
||
| LoggerProvider.ForceFlush | - |
||
| Logger.Emit(LogRecord) | + |
SdkLogRecordBuilder.scala | |
| LogRecord.Set EventName | + |
SdkLogRecordBuilder.scala | |
| Logger.Enabled | + |
true |
SdkLogger.scala, SdkLoggerProvider.scala |
| Ergonomic API | - |
true |
|
| SimpleLogRecordProcessor | + |
SimpleLogRecordProcessor.scala | |
| BatchLogRecordProcessor | + |
BatchLogRecordProcessor.scala, BatchLogRecordProcessorSuite.scala | |
| Can plug custom LogRecordProcessor | + |
SdkLoggerProvider.scala | |
| LogRecordProcessor.Enabled | - |
true |
|
| OTLP/gRPC exporter | + |
OtlpLogRecordExporter.scala | |
| OTLP/HTTP exporter | + |
OtlpLogRecordExporter.scala | |
| OTLP File exporter | - |
||
| Can plug custom LogRecordExporter | + |
LogRecordExportersAutoConfigure.scala | |
| Trace Context Injection | + |
SdkLogRecordBuilder.scala |
Resource
| Item | Status | Optional | Evidence |
|---|---|---|---|
| Create from Attributes | + |
TelemetryResource.scala | |
| Create empty | + |
TelemetryResource.scala | |
| Merge (v2) | + |
TelemetryResource.scala | |
| Retrieve attributes | + |
TelemetryResource.scala | |
| Default value for service.name | + |
TelemetryResource.scala | |
| Resource detector interface/mechanism | + |
TelemetryResourceAutoConfigure.scala | |
| Resource detectors populate Schema URL | + |
TelemetryResourceDetectorSuite.scala, HostDetectorPlatform.scala |
Context Propagation
| Item | Status | Optional | Evidence |
|---|---|---|---|
| Create Context Key | + |
Context.scala | |
| Get value from Context | + |
Context.scala | |
| Set value for Context | + |
Context.scala | |
| Attach Context | + |
ContextManager.scala (scoped restoration via SDK and testkit contextManager; no explicit tokens) |
|
| Detach Context | + |
ContextManager.scala (scoped restoration via SDK and testkit contextManager; no explicit tokens) |
|
| Get current Context | + |
ContextManager.scala (scoped restoration via SDK and testkit contextManager; no explicit tokens) |
|
| Composite Propagator | + |
TextMapPropagator.scala | |
| Global Propagator | - |
||
| TraceContext Propagator | + |
W3CTraceContextPropagator.scala | |
| B3 Propagator | + |
B3Propagator.scala | |
| Jaeger Propagator | + |
JaegerPropagator.scala | |
| OT Propagator | + |
OtTracePropagator.scala | |
| OpenCensus Binary Propagator | - |
||
| TextMapPropagator | + |
TextMapPropagator.scala | |
| Fields | + |
TextMapPropagator.scala | |
| Setter argument | + |
true |
TextMapPropagator.scala |
| Getter argument | + |
true |
TextMapPropagator.scala |
| Getter argument returning Keys | + |
true |
JaegerPropagator.scala |
Environment Variables
Declarative configuration
| Item | Status | Optional | Evidence |
|---|---|---|---|
Parse a configuration file |
- |
||
The Parse operation accepts the configuration YAML file format |
- |
||
The Parse operation performs environment variable substitution |
- |
||
The Parse operation returns configuration model |
- |
||
The Parse operation resolves extension component configuration to properties |
- |
||
Create SDK components |
- |
||
The Create operation accepts configuration model |
- |
||
The Create operation returns TracerProvider |
- |
||
The Create operation returns MeterProvider |
- |
||
The Create operation returns LoggerProvider |
- |
||
The Create operation returns Propagators |
- |
||
The Create operation calls CreatePlugin of corresponding ComponentProvider when encountering extension components |
- |
||
Register a ComponentProvider |
- |
Exporters
OpenCensus Compatibility
| Item | Status | Optional | Evidence |
|---|---|---|---|
| Trace Bridge | - |
||
| Metric Bridge | - |
OpenTracing Compatibility
| Item | Status | Optional | Evidence |
|---|---|---|---|
| Create OpenTracing Shim | - |
||
| Tracer | - |
||
| Span | - |
||
| SpanContext | - |
||
| ScopeManager | - |
||
| Error mapping for attributes/events | - |
||
| Migration to OpenTelemetry guide | - |