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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

jerbly
Copy link
Contributor

@jerbly jerbly commented Jan 12, 2025

Adds a new command: registry emit to send real OTLP messages to a receiver. This is may be useful in testing 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 opentelemetry-stdout to check output
  • Generate examples from the resolved examples in the registry
  • Use the correct span_kind
  • Generate examples for template types (correctness issues prevent this)
  • Adhere to conditionally_required clause (programmatically doing this, is not possible)

Metrics:

  • Emit all defined metrics for the registry.

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