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 default merging of resource attributes from environment variable #69

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

dhruv-vora
Copy link

  1. Added Detect function to collect resource from environment.
  2. Made use of Merge function to merge the above resource with the new resource in TracerProvider and Collector.

Fixes open-telemetry#1689

@dhruv-vora dhruv-vora requested a review from Aneurysm9 as a code owner March 29, 2021 21:43
@dhruv-vora dhruv-vora requested a review from alolita March 29, 2021 21:50
…ment vairable and WithResource() configuration for TracerProvider and Controller
CHANGELOG.md Outdated Show resolved Hide resolved
sdk/metric/controller/basic/config.go Show resolved Hide resolved
sdk/resource/resource.go Outdated Show resolved Hide resolved
sdk/trace/provider.go Outdated Show resolved Hide resolved
sdk/resource/resource.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
sdk/resource/resource.go Outdated Show resolved Hide resolved
sdk/trace/trace_test.go Outdated Show resolved Hide resolved
Copy link

@alolita alolita left a comment

Choose a reason for hiding this comment

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

Adding more inline comments would be useful for each function.

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.

The SDK MUST extract information from the OTEL_RESOURCE_ATTRIBUTES environment variable
3 participants