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 tidy failure #685

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

hienvanhuynh
Copy link
Contributor

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

Also, while pushing it, I noticed the test TestAddLabelClient is not stable,
This is due to the labels order has been
shuffled after convertions between []string
and model.LabelSet, which is of map type.
So I push the fix in a separate commit

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
@jacksontj jacksontj merged commit e0a16f2 into jacksontj:master Sep 23, 2024
1 check passed
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.

2 participants