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

upgrading to go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp throws errors #2133

Closed
codeboten opened this issue Mar 28, 2022 · 3 comments

Comments

@codeboten
Copy link
Contributor

The following error occurred while trying to upgrade go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp:

 # go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/handler.go:50:38: undefined: metric.Int64Counter
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/handler.go:51:38: undefined: metric.Float64Histogram
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/handler.go:96:38: undefined: metric.Int64Counter
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/handler.go:97:44: undefined: metric.Float64Histogram
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/handler.go:99:38: h.meter.NewInt64Counter undefined (type metric.Meter has no field or method NewInt64Counter)
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/handler.go:102:39: h.meter.NewInt64Counter undefined (type metric.Meter has no field or method NewInt64Counter)
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/handler.go:105:39: h.meter.NewFloat64Histogram undefined (type metric.Meter has no field or method NewFloat64Histogram)
Error: /home/runner/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp@v0.30.0/config.go:65:25: undefined: global.GetMeterProvider

See full log here: https://github.com/open-telemetry/opentelemetry-collector/runs/5723445917?check_suite_focus=true

@Aneurysm9
Copy link
Member

The contrib instrumentation that has been updated for the most recent metrics release has not yet been released. That will happen shortly, following a quick patch release in the core repo. For the moment you should be able to use the main pseudoversion.

@MrAlias
Copy link
Contributor

MrAlias commented Mar 28, 2022

Release v1.6.0/v0.31.0 is complete. Please try again with this latest version.

@codeboten
Copy link
Contributor Author

This issue can be closed

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

No branches or pull requests

3 participants