Skip to content

[METRICS SDK] Fix OTLP gRPC Metrics env variables#1543

Merged
lalitb merged 9 commits intoopen-telemetry:mainfrom
lalitb:otel-grpc-conf
Aug 8, 2022
Merged

[METRICS SDK] Fix OTLP gRPC Metrics env variables#1543
lalitb merged 9 commits intoopen-telemetry:mainfrom
lalitb:otel-grpc-conf

Conversation

@lalitb
Copy link
Copy Markdown
Member

@lalitb lalitb commented Aug 5, 2022

Fixes # (issue)

Changes

Please provide a brief description of the changes here.

otlp gRPC Metrics exporter is reusing the env variable processing from otlp trace exporter, which is making it use env variables containing _TRACE_ instead of _METRICS_. This is fixed now.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@lalitb lalitb requested a review from a team August 5, 2022 22:24
@lalitb lalitb changed the title Fix OTLP gRPC env variables [METRICS SDK] Fix OTLP gRPC Metrics env variables Aug 5, 2022
Comment thread exporters/otlp/include/opentelemetry/exporters/otlp/otlp_environment.h Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 5, 2022

Codecov Report

Merging #1543 (aa07289) into main (8b61c99) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1543   +/-   ##
=======================================
  Coverage   83.91%   83.91%           
=======================================
  Files         156      156           
  Lines        4908     4908           
=======================================
  Hits         4118     4118           
  Misses        790      790           

Comment thread exporters/otlp/include/opentelemetry/exporters/otlp/otlp_environment.h Outdated
Copy link
Copy Markdown
Member

@esigo esigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks for the fix :)

Comment thread exporters/otlp/include/opentelemetry/exporters/otlp/otlp_environment.h Outdated
@lalitb lalitb merged commit 319d854 into open-telemetry:main Aug 8, 2022
yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 2022
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.

3 participants