You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the issue is:
resource.New is called twice, once here where it's used for the go-contrib config package and once here only for meter provider
This PR does a couple of things that I couldn't quite split up so I put
together a PR w/ individual commits to help reviewers get through it.
This PR does the following:
1. update `go.opentelemetry.io/contrib/config` package to latest. this
brings in breaking changes. in order to prevent those breaking changes
from impacting end users, i've also added a layer of config unmarshaling
2. updates the collector to instantiate the meter provider (and
exporters) via the config package. this allows us to remove all the code
in `otelinit`. the reason for including this change was that
unmarshaling the config was causing circular dependencies i didn't want
to address by moving code that could be deleted around.
Replacement for
#11458.
Fixes#12021
---------
Signed-off-by: Alex Boten <[email protected]>
Describe the bug
When setting up the collector's self-telemetry, I found that metrics emit different resource attributes than the other signals.
Steps to reproduce
service.instance.id
in the outputs to discover differing IDsWhat did you expect to see?
A single and consistent service.instance.id in self-telemetry
What did you see instead?
logs service.instance.id: ca53d844-128d-4358-8978-8702c6bf3aad
traces service.instance.id: ca53d844-128d-4358-8978-8702c6bf3aad
opamp service.instance.id: ca53d844-128d-4358-8978-8702c6bf3aad
metrics service.instance.id: d768bfb1-6707-4b57-a96a-c89da7255388
What version did you use?
v0.116.0
What config did you use?
Environment
Mac OS 15.1
Additional context
The text was updated successfully, but these errors were encountered: