open-telemetry / opentelemetry-js

OpenTelemetry JavaScript Client
https://opentelemetry.io
Apache License 2.0
2.76k stars 810 forks source link

[sdk-metrics] implement metrics exemplars #5147

Open pichlermarc opened 1 week ago

pichlermarc commented 1 week ago

Description

[!IMPORTANT] This is a large feature that is not suitable for beginners. Please make sure to sync with @open-telemetry/javascript-approvers first to ensure that there is bandwidth to review your work on this feature. It is recommended that the assignee joins the OpenTelemetry JavaScript SIG Meeting on Wednesdays to discuss any questions.

Prerequisite knowledge:

  • @opentelemetry/sdk-metrics internals
  • Knowlege about trace context and context management in OTel JS

Exemplars are a stable specification feature (see specification) that has a bootstrapped implementation in @opentelemetry/sdk-metrics which has never been driven to completion.

The goal of this issue is to implement this feature according to the specification and expose it to the user as an experimental feature. The assignee may have to remove and adapt the existing code to ensure that it follows all our requirements as laid out on this issue.

This issue is considered done when

Additonal Requirements

Additional Information/Resources