Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make upgrading OpenTelemetry easier (#7712)
OpenTelemetry has "semantic conventions" which are versioned independently of the software package, as it describes the semantics of the resources being produced. Previously, we'd combined `resource.Default()` using the `Merge` function with our own resources. Merge, however, doesn't handle merging resources with different semantic conventions. This means that every dependabot PR that bumps otel will break when the `resources.Default` has a new version. That doesn't seem worth it for the default resources, so just provide our own resources which have everything we care about. I've added the PID which we didn't have before but will be interesting. We will lose the SDK's version, but I don't think that matters. For more discussion on this topic, see open-telemetry/opentelemetry-go#3769
- Loading branch information