Skip to content

Libraries with different versions of opentelemetry #9

@Nurzhanuly

Description

@Nurzhanuly

Hello, I had an issue when using github.com/tel-io/tel/v2 as a dependency in my project and I wanted to see if you could help in this situation?

The problem is that github.com/tel-io/tel uses go.opentelemetry.io/otel/metric v0.33.1-0.20221111171059-308d0362e6c5, and my other dependency uses go.opentelemetry.io/otel/metric v1.19.0.

While doing go mod tidy I get this error:

go: example-service/cmd/consumer imports
        github.com/tel-io/tel/v2 imports
        go.opentelemetry.io/otel/sdk/metric imports
        go.opentelemetry.io/otel/metric/instrument/syncfloat64: module go.opentelemetry.io/otel/metric@latest found (v1.19.0), but does not contain package go.opentelemetry.io/otel/metric/instrument/syncfloat64

The problem is that go mod tidy fetches the latest available version even though v0.33.1-0.20221111171059-308d0362e6c5 is specifed.

So my question is:

  • Do you plan to update you opentelemetry dependencies to the latest version?
  • If not, do you know any workaround for this problem?

If I had access to other library I could manage this using replace, but unfortunately I can't change dependencies in your or other library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions