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

Doc - Exporters - Wrong import under section "OTLP metrics over gRPC" #4959

Closed
michaelsatish opened this issue Aug 5, 2024 · 1 comment · Fixed by #4961
Closed

Doc - Exporters - Wrong import under section "OTLP metrics over gRPC" #4959

michaelsatish opened this issue Aug 5, 2024 · 1 comment · Fixed by #4961
Labels

Comments

@michaelsatish
Copy link

Hello,

Wrong import trace in place of metric is used in example. See link https://opentelemetry.io/docs/languages/go/exporters/#otlp-metrics-over-grpc

import (
	"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"
	"go.opentelemetry.io/otel/sdk/trace" // Wrong import
)

func newExporter(ctx context.Context) (metric.Exporter, error) {
	return otlpmetricgrpc.New(ctx)
}
@cartermp
Copy link
Contributor

cartermp commented Aug 5, 2024

Agh! Thanks, somehow we missed that a while back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants