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

fix: detect service.name from OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES #662

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

TommyCpp
Copy link
Contributor

@TommyCpp TommyCpp commented Nov 1, 2021

OTEL_SERVICE_NAME will take priority and if it's not available. We will try to detect the service.name from OTEL_RESOURCE_ATTRIBUTES. If it's also not available. We will use the default one.

…RIBUTES.

OTEL_SERVICE_NAME will take priority and if it's not available. We will try to detect the service.name from OTEL_RESOURCE_ATTRIBUTES. If it's also not available. We will use the default one.
@codecov
Copy link

codecov bot commented Nov 1, 2021

Codecov Report

Merging #662 (7c5ad12) into main (d127e94) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #662      +/-   ##
==========================================
+ Coverage   62.13%   62.22%   +0.09%     
==========================================
  Files          95       95              
  Lines        7719     7738      +19     
==========================================
+ Hits         4796     4815      +19     
  Misses       2923     2923              
Impacted Files Coverage Δ
opentelemetry/src/sdk/resource/env.rs 89.61% <100.00%> (+3.40%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d127e94...7c5ad12. Read the comment docs.

Copy link
Member

@jtescher jtescher left a comment

Choose a reason for hiding this comment

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

Looks good

@TommyCpp TommyCpp merged commit 2d37fd1 into open-telemetry:main Nov 1, 2021
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.

None yet

2 participants