Skip to content

Conversation

Degfy
Copy link
Member

@Degfy Degfy commented May 8, 2025

  • Add check for existing registration to avoid duplicates
  • Use global variable 'h' to ensure single instance of helper
  • Implement this change for LoggerProvider, MeterProvider, and TracerProvider

dapeng added 2 commits May 8, 2025 13:11
- Remove global tracer import from go.opentelemetry.io/otel
- Use component's tracer instead of global tracer
- Update tracer initialization to use component's tracer
- Add check for existing registration to avoid duplicates
- Use global variable 'h' to ensure single instance of helper
- Implement this change for LoggerProvider, MeterProvider, and TracerProvider
Copy link

codecov bot commented May 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
otel/log/helper.go 92.85% <100.00%> (+0.54%) ⬆️
otel/meter/helper.go 92.68% <100.00%> (+0.57%) ⬆️
otel/tracer/helper.go 91.89% <100.00%> (+0.71%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…oviders

- Update test files to include loader registration step
- Add `Loads` method with a custom loader function
- Improve test coverage by ensuring proper registration of loaders
@Degfy Degfy added the kind/bug label May 8, 2025
@Degfy Degfy self-assigned this May 8, 2025
@Degfy Degfy added this to gone plan May 8, 2025
@Degfy Degfy merged commit b6c909f into main May 8, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this to Done in gone plan May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant