Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTLP registry emitter #549

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

jerbly
Copy link
Contributor

@jerbly jerbly commented Jan 12, 2025

First iteration of the new command: registry emit. Emits a semantic convention registry as example spans to your OTLP receiver. This may be useful in testing/simulation scenarios. Defaults to http://localhost:4317 if the OpenTelemetry standard OTEL_EXPORTER_OTLP_ENDPOINT env var is unset.

With this command:

weaver registry emit

A single trace with all defined spans in the current Semantic Conventions are sent to the receiver:
image

Spans:

  • Emit all defined spans for the registry in a single trace.
  • Use standard OpenTelemetry libraries for real-world compatibility
  • Write tests using a custom Exporter
  • Generate examples from the resolved examples in the registry
  • Use the correct span_kind

A future PR will cover:

Copy link

codecov bot commented Jan 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.6%. Comparing base (d616ff9) to head (9a41168).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #549   +/-   ##
=====================================
  Coverage   74.6%   74.6%           
=====================================
  Files         51      51           
  Lines       3965    3965           
=====================================
+ Hits        2958    2959    +1     
+ Misses      1007    1006    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jerbly jerbly marked this pull request as ready for review January 18, 2025 02:59
@jerbly jerbly requested a review from a team as a code owner January 18, 2025 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant