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

I don't know how to Go 😢 #3272

Closed
alanwest opened this issue Oct 12, 2022 · 3 comments · Fixed by #3275
Closed

I don't know how to Go 😢 #3272

alanwest opened this issue Oct 12, 2022 · 3 comments · Fixed by #3275
Labels
bug Something isn't working
Milestone

Comments

@alanwest
Copy link
Member

go building the following gives

../../../../go/1.19.1/pkg/mod/go.opentelemetry.io/otel/exporters/otlp/[email protected]/internal/oconf/options.go:107:62: undefined: internal.GetUserAgentHeader

go.mod

module main

go 1.19

require (
	go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.32.2
	go.opentelemetry.io/otel/metric v0.32.2
	go.opentelemetry.io/otel/sdk/metric v0.32.2
)

require (
	github.com/cenkalti/backoff/v4 v4.1.3 // indirect
	github.com/davecgh/go-spew v1.1.1 // indirect
	github.com/go-logr/logr v1.2.3 // indirect
	github.com/go-logr/stdr v1.2.2 // indirect
	github.com/golang/protobuf v1.5.2 // indirect
	github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
	go.opentelemetry.io/otel v1.10.0 // indirect
	go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.10.0 // indirect
	go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.32.2 // indirect
	go.opentelemetry.io/otel/sdk v1.10.0 // indirect
	go.opentelemetry.io/otel/trace v1.10.0 // indirect
	go.opentelemetry.io/proto/otlp v0.19.0 // indirect
	golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458 // indirect
	golang.org/x/sys v0.0.0-20221010170243-090e33056c14 // indirect
	golang.org/x/text v0.3.8 // indirect
	google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e // indirect
	google.golang.org/grpc v1.50.0 // indirect
	google.golang.org/protobuf v1.28.1 // indirect
)

main.go

package main

import (
	"context"

	"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"
	"go.opentelemetry.io/otel/metric/global"
	"go.opentelemetry.io/otel/sdk/metric"
)

func main() {
	ctx := context.Background()
	exporter, _ := otlpmetricgrpc.New(ctx)
	reader := metric.NewPeriodicReader(exporter)
	meterProvider := metric.NewMeterProvider(metric.WithReader(reader))
	global.SetMeterProvider(meterProvider)
}
@alanwest alanwest added the bug Something isn't working label Oct 12, 2022
@MrAlias
Copy link
Contributor

MrAlias commented Oct 12, 2022

🤦

Portions of #3261 were not released but the portions that were depend on those unreleased (internal) packages.

I think we need a v1.11.0 and v0.32.3 release to fix this mistake. (cc @Aneurysm9 @MadVikingGod)

@Aneurysm9
Copy link
Member

we should probably also retract v0.32.2 then.

@MadVikingGod
Copy link
Contributor

Oy. That's our bad.

I think that makes sense, it should probably include a retraction of v0.32.2 also.

@pellared pellared moved this to Closed in Go: Triage Nov 2, 2023
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants