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 go mod tidy failure #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix go mod tidy failure #2

wants to merge 2 commits into from

Conversation

hienvanhuynh
Copy link
Owner

Currently, the go mod tidy command is failing,
and thus, we cannot update the vendors correctly.
This is due to newer otel version has breaking
changes in its cross-module internal code.

This issue is reported in: open-telemetry/opentelemetry-go#4586

To fix it, we must specify a specific version of
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp

So to fix:
go get go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp@v1.18.0
go mod tidy && go mod vendor

@hienvanhuynh hienvanhuynh force-pushed the fix_tidy_failure branch 2 times, most recently from a5ac9d8 to 3ee5d28 Compare September 23, 2024 09:23
I see the test case TestAddLabelClient is unstable.
this is due to the labels order has been
shuffled after convertions between []string
and model.LabelSet, which is of map type.
Currently, the go mod tidy command is failing,
and thus, we cannot update the vendors correctly.
This is due to newer otel version has breaking
changes in its cross-module internal code.

This issue is reported in: open-telemetry/opentelemetry-go#4586

To fix it, we must specify a specific version of
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
So to fix:
go get go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp@v1.18.0
go mod tidy && go mod vendor
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.

1 participant