1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-07 23:02:15 +02:00
opentelemetry-go/sdk/resource
Dhruv Vora 0032bd6499
Fix default merging of resource attributes from environment variable (#1785)
* updated controller to merge default resource with environment resource

* updated TracerProvider to merge default resource with environment resource

* Added Changelog entry

* Added resource.Environment(), modified resource.Default() for environment vairable and WithResource() configuration for TracerProvider and Controller

* Update CHANGELOG.md

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

* Moved environment detector to defaultResource initialization, added test cases

* Changes to default resource initialization

* made changes to the test cases

* added merging of resource with environment resource

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
2021-04-21 14:53:12 -04:00
..
auto.go chore: adds vanity import for files that don't have it. (#1297) 2020-11-04 09:10:58 -08:00
benchmark_test.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
builtin_test.go Comply with OpenTelemetry attributes specification (#1703) 2021-03-17 20:48:43 -04:00
builtin.go Comply with OpenTelemetry attributes specification (#1703) 2021-03-17 20:48:43 -04:00
config_test.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
config.go revent end-users from implementing some interfaces (#1575) 2021-02-24 10:03:35 -08:00
doc.go chore: adds vanity import for files that don't have it. (#1297) 2020-11-04 09:10:58 -08:00
env_test.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
env.go Rename resource pkg label vars and methods (#1692) 2021-03-11 11:00:12 -08:00
resource_test.go Comply with OpenTelemetry attributes specification (#1703) 2021-03-17 20:48:43 -04:00
resource.go Fix default merging of resource attributes from environment variable (#1785) 2021-04-21 14:53:12 -04:00