Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

Telemetry and the SDK

as of v1.45.0

Telemetry describing itself: the service and SDK that emitted it, and the log and event plumbing.

otel 12service 9log 7telemetry 5event 1opentracing 1state 1

Attributes
36
Metrics
23
Signals
6
Stable
14
Deprecated
7

Signals

What this domain emits, and the attributes each one carries, most strongly required first. An attribute marked * is required on that signal; * is conditionally required.

Entities 6

Metrics 23

  • otel.sdk.exporter.log.exported
    Developmentcounter · {log_record}The number of log records for which the export has finished, either successful or failed.
  • otel.sdk.exporter.log.inflight
    Developmentupdowncounter · {log_record}The number of log records which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).
  • otel.sdk.exporter.metric_data_point.exported
    Developmentcounter · {data_point}The number of metric data points for which the export has finished, either successful or failed.
  • otel.sdk.exporter.metric_data_point.inflight
    Developmentupdowncounter · {data_point}The number of metric data points which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).
  • otel.sdk.exporter.operation.duration
    Developmenthistogram · sThe duration of exporting a batch of telemetry records.
  • otel.sdk.exporter.span.exported
    Developmentcounter · {span}The number of spans for which the export has finished, either successful or failed.
  • otel.sdk.exporter.span.exported.count
    Deprecatedupdowncounter · {span}Deprecated, use otel.sdk.exporter.span.exported instead.
  • otel.sdk.exporter.span.inflight
    Developmentupdowncounter · {span}The number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed).
  • otel.sdk.exporter.span.inflight.count
    Deprecatedupdowncounter · {span}Deprecated, use otel.sdk.exporter.span.inflight instead.
  • otel.sdk.log.created
    Developmentcounter · {log_record}The number of log records submitted to an enabled Logger.
  • otel.sdk.metric_reader.collection.duration
    Developmenthistogram · sThe duration of the collect operation of the metric reader.
  • otel.sdk.processor.log.processed
    Developmentcounter · {log_record}The number of log records for which the processing has finished, either successful or failed.
  • otel.sdk.processor.log.queue.capacity
    Developmentupdowncounter · {log_record}The maximum number of log records the queue of a given instance of an SDK Log Record processor can hold.
  • otel.sdk.processor.log.queue.size
    Developmentupdowncounter · {log_record}The number of log records in the queue of a given instance of an SDK log processor.
  • otel.sdk.processor.span.processed
    Developmentcounter · {span}The number of spans for which the processing has finished, either successful or failed.
  • otel.sdk.processor.span.processed.count
    Deprecatedupdowncounter · {span}Deprecated, use otel.sdk.processor.span.processed instead.
  • otel.sdk.processor.span.queue.capacity
    Developmentupdowncounter · {span}The maximum number of spans the queue of a given instance of an SDK span processor can hold.
  • otel.sdk.processor.span.queue.size
    Developmentupdowncounter · {span}The number of spans in the queue of a given instance of an SDK span processor.
  • otel.sdk.span.ended
    Deprecatedcounter · {span}Use otel.sdk.span.started minus otel.sdk.span.live to derive this value.
  • otel.sdk.span.ended.count
    Deprecatedcounter · {span}Use otel.sdk.span.started minus otel.sdk.span.live to derive this value.
  • otel.sdk.span.live
    Developmentupdowncounter · {span}The number of created spans with recording=true for which the end operation has not been called yet.
  • otel.sdk.span.live.count
    Deprecatedupdowncounter · {span}Deprecated, use otel.sdk.span.live instead.
  • otel.sdk.span.started
    Developmentcounter · {span}The number of created spans.

Specification

  • Metricsare bound by the metrics specification — 569 requirements across 8 documents, 296 of them MUST or SHALL.
  • Entitiesare bound by the entities specification — 54 requirements across 3 documents, 24 of them MUST or SHALL.

Requirements that name this domain 48

  • MUSTSchema URLStable

    The fetcher MUST follow the HTTP standard and honour the redirect response and fetch the file from the redirected URL.

  • MUSTSchema URLStable

    The schema file that corresponds to the new version MUST be retrievable at a new URL.

  • MUSTSpan ExporterStable

    Each implementation MUST document the concurrency characteristics the SDK requires of the exporter.

  • This tuple SHOULD uniquely identify the logical unit of software that emits the telemetry.

  • The instrumentation scope's name SHOULD be specified to identify the InstrumentationScope name.

  • The instrumentation scope's optional Schema URL SHOULD identify the Telemetry Schema that the instrumentation's emitted telemetry conforms to.

  • Exporters to formats that don't have a concept that is equivalent to the Scope SHOULD record the attributes at the most suitable place in their corresponding format, typically at the Span, Metric or LogRecord equivalent.

  • SHOULD NOTExporter SelectionStable

    It SHOULD NOT be supported by new implementations.

All 48 matching requirements

On the wire, this lands in metrics/v1/metrics, resource/v1/resource. Field-by-field definitions are under OTLP.

Attributes 36

otel12 attributes

service9 attributes

  • service.criticality
    AlphaThe operational criticality of the service.
  • service.instance.cost_center.id
    DevelopmentIdentifier of the cost center associated with the service instance.
  • service.instance.cost_center.name
    DevelopmentName of the cost center associated with the service instance.
  • service.instance.id
    StableThe string ID of the service instance.
  • service.name
    StableLogical name of the service.
  • service.namespace
    StableA namespace for service.name.
  • service.peer.name
    DeprecatedLogical name of the service on the other side of the connection. SHOULD be equal to the actual service.name resource attribute of the remote service if any.
  • service.peer.namespace
    DeprecatedLogical namespace of the service on the other side of the connection. SHOULD be equal to the actual service.namespace resource attribute of the remote service i
  • service.version
    StableThe version string of the service component. The format is not defined by these conventions.

log7 attributes

  • log.file.name
    DevelopmentThe basename of the file to which the log record was emitted.
  • log.file.name_resolved
    DevelopmentThe basename of the file to which the log record was emitted, with symlinks resolved.
  • log.file.path
    DevelopmentThe full path to the file to which the log record was emitted.
  • log.file.path_resolved
    DevelopmentThe full path to the file to which the log record was emitted, with symlinks resolved.
  • log.iostream
    DevelopmentThe stream the log record was emitted to.
  • log.record.original
    DevelopmentThe complete original Log Record.
  • log.record.uid
    DevelopmentA unique identifier for the Log Record.

telemetry5 attributes

event1 attribute

  • event.name
    DeprecatedIdentifies the class / type of event.

opentracing1 attribute

state1 attribute

Recent changes

Breaking and notable changes to this domain across the last 6 semantic-conventions releases.

2 more in the full release history

Topics are this site's grouping of upstream namespaces, not a structure the OpenTelemetry project publishes. JSON · All domains