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

example/dice: Do not use semconv #4849

Merged
merged 6 commits into from
Jan 25, 2024
Merged

Conversation

pellared
Copy link
Member

Why

Per #4846 (comment)

Supersedes #4846

What

Use simply resource.Default() and set OTEL_RESOURCE_ATTRIBUTES instead of using resource.NewWithAttributes to mitigate the "resource merge conflict" runtime error that the users encounter have when bumping OTel Go when they are using the existing "getting started" example (https://opentelemetry.io/docs/languages/go/getting-started/#initialize-the-opentelemetry-sdk).

A PR to update https://opentelemetry.io/docs/languages/net/automatic/getting-started/ will be created as a follow-up to this PR.

Related to #2341

PTAL @chalin @svrnm

@pellared pellared added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 24, 2024
example/dice/otel.go Outdated Show resolved Hide resolved
@pellared pellared requested a review from dashpole January 24, 2024 17:28
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c573785) 82.3% compared to head (2e8881c) 82.3%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4849   +/-   ##
=====================================
  Coverage   82.3%   82.3%           
=====================================
  Files        226     226           
  Lines      18557   18557           
=====================================
+ Hits       15286   15288    +2     
+ Misses      2983    2981    -2     
  Partials     288     288           

see 1 file with indirect coverage changes

@MrAlias MrAlias merged commit 6f96e67 into open-telemetry:main Jan 25, 2024
25 checks passed
@pellared pellared deleted the dice-no-semconv branch January 25, 2024 19:30
@MrAlias MrAlias added this to the v1.23.0 milestone Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants