Skip to content

Conversation

@tomDev5
Copy link

@tomDev5 tomDev5 commented May 17, 2025

Fixes #1983

Changes

Added build_default for MetricExporter, LogExporter and SpanExporter.

build_default uses the OTEL_EXPORTER_OTLP_PROTOCOL environment variable (specified in opentelemetry docs).

This doesn't prevent creating them the old way, with all configurations possible.

@tomDev5 tomDev5 requested a review from a team as a code owner May 17, 2025 12:49
@linux-foundation-easycla
Copy link

CLA Not Signed

@tomDev5 tomDev5 changed the title added build_default to MetricExporterBuilder support OTEL_EXPORTER_OTLP_PROTOCOL May 17, 2025
@codecov
Copy link

codecov bot commented May 17, 2025

Codecov Report

Attention: Patch coverage is 0% with 39 lines in your changes missing coverage. Please review.

Project coverage is 81.2%. Comparing base (8499914) to head (0fd3265).

Files with missing lines Patch % Lines
opentelemetry-otlp/src/logs.rs 0.0% 13 Missing ⚠️
opentelemetry-otlp/src/metric.rs 0.0% 13 Missing ⚠️
opentelemetry-otlp/src/span.rs 0.0% 13 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #2977     +/-   ##
=======================================
- Coverage   81.3%   81.2%   -0.2%     
=======================================
  Files        126     126             
  Lines      24375   24414     +39     
=======================================
+ Hits       19827   19828      +1     
- Misses      4548    4586     +38     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tomDev5 tomDev5 closed this May 17, 2025
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.

[Bug]: OTEL_EXPORTER_OTLP_PROTOCOL env var is not supported

1 participant