Skip to content

Metrics SDK: Add Metrics exemplar #1093

Description

@lalitb

Specs: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#exemplar

  • A metrics exemplar is a trace that is representative of the metrics being collected. The spec requires that exemplars be implemented in a way such that they may be disabled and that if disabled they should have no performance impact (collection should be disabled, not just export). When enabled, the exemplars will come from the currently active context.
    Properties: Value, Time, Attributes, Trace ID, Span ID

  • ExemplarFilter determines if a measurement should be sampled
    Properties - value of measurement, attributes of measurement, context of measurement, timestamp

  • ExemplarReservoir provides a method to offer measurements to the reservoir and to collect accumulated exemplars

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions