Skip to content

[componentattribute] Use otelzap.WithAttributes, remove LoggerProviderWithAttributes #13108

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

Merged

Conversation

jade-guiton-dd
Copy link
Contributor

@jade-guiton-dd jade-guiton-dd commented May 28, 2025

Description

Now that otelzap has been bumped up to 0.11.0 (#13103), this PR follows up on a TODO comment to use open-telemetry/opentelemetry-go-contrib#6962 to set instrumentation scope attributes on the Logger created by otelzap, instead of a workaround (LoggerProviderWithAttributes).

This is an internal change, and the new code should be functionally equivalent, so I don't think this needs a changelog.

Testing

I believe this is already covered by existing tests.

@jade-guiton-dd jade-guiton-dd requested a review from a team as a code owner May 28, 2025 14:19
@jade-guiton-dd jade-guiton-dd added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 28, 2025
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.60%. Comparing base (633b6de) to head (c00f00f).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13108   +/-   ##
=======================================
  Coverage   91.59%   91.60%           
=======================================
  Files         506      505    -1     
  Lines       28534    28517   -17     
=======================================
- Hits        26137    26123   -14     
+ Misses       1882     1880    -2     
+ Partials      515      514    -1     

☔ 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.

@codeboten codeboten added this pull request to the merge queue May 30, 2025
Merged via the queue into open-telemetry:main with commit 7ff2465 May 30, 2025
62 of 66 checks passed
malus2077 pushed a commit to malus2077/opentelemetry-collector that referenced this pull request Jun 3, 2025
…rWithAttributes (open-telemetry#13108)

#### Description

Now that `otelzap` has been bumped up to 0.11.0 (open-telemetry#13103), this PR
follows up on a TODO comment to use
open-telemetry/opentelemetry-go-contrib#6962 to
set instrumentation scope attributes on the Logger created by otelzap,
instead of a workaround (`LoggerProviderWithAttributes`).

This is an internal change, and the new code should be functionally
equivalent, so I don't think this needs a changelog.

#### Testing

I believe this is already covered by existing tests.
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.

3 participants