You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating the "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" Go module to version 0.41.0 (per today's release of that repository's version 1.16.0) drags the "go.opentelemetry.io/otel/metric" Go module up to version 0.38.0, with which this module no longer compiles.
Attempting to use this module produces the following compilation errors:
sql.go:141:3: cannot use cfg.Attributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveInt64
sql.go:146:3: cannot use append(cfg.Attributes, connectionStatusKey.String("inuse")) (value of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveInt64
sql.go:150:3: cannot use append(cfg.Attributes, connectionStatusKey.String("idle")) (value of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveInt64
sql.go:155:3: cannot use cfg.Attributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveInt64
sql.go:159:3: cannot use cfg.Attributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveFloat64
sql.go:163:3: cannot use cfg.Attributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveInt64
sql.go:167:3: cannot use cfg.Attributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveInt64
sql.go:171:3: cannot use cfg.Attributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.ObserveOption value in argument to observer.ObserveInt64
utils.go:73:4: cannot use attributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.RecordOption value in argument to instruments.latency.Record
Environment
OS: macOS
Architecture: x86
Go Version: 1.20.3
otelsql version: v0.21.0
Steps To Reproduce
Include the following entries in a go.mod file, at minimum:
Write a Go program that uses this "github.com/XSAM/otelsql" module.
Observe that compilation fails as described above.
Expected behavior
The program would compile as it did before upgrading the "go.opentelemetry.io/otel/metric" Go module (indirectly) to version 0.38.0. See open-telemetry/opentelemetry-go#3971 by @MrAlias for the recent change to generalize the final variadic parameters to the methods involved here.
The text was updated successfully, but these errors were encountered:
Description
Updating the "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" Go module to version 0.41.0 (per today's release of that repository's version 1.16.0) drags the "go.opentelemetry.io/otel/metric" Go module up to version 0.38.0, with which this module no longer compiles.
Attempting to use this module produces the following compilation errors:
Environment
Steps To Reproduce
Expected behavior
The program would compile as it did before upgrading the "go.opentelemetry.io/otel/metric" Go module (indirectly) to version 0.38.0. See open-telemetry/opentelemetry-go#3971 by @MrAlias for the recent change to generalize the final variadic parameters to the methods involved here.
The text was updated successfully, but these errors were encountered: