Skip to content

update batch processors to emit otel semconv metrics #1647

@brettmc

Description

@brettmc

Our SDK's BatchSpanProcessor and BatchLogRecordProcessor emit metrics about their internal state, eg otel.trace.span_processor.spans and otel.logs.log_processor.queue.usage.
Since #1633 has been merged we have some official semantic conventions that can be used.

We should:

  • use semconv where available
  • consider dropping or submitting new semconv's for metrics we emit that do not map to a semconv

See https://opentelemetry.io/docs/specs/semconv/otel/sdk-metrics/

This is not a breaking change in terms of API, but behaviourally different enough to go into SDK 2.x ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions