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
Recently we have been seeing the following error when building lambda functions which require datadog-lambda-go
# github.com/DataDog/datadog-agent/pkg/trace/traceutil
../../../../../../pkg/mod/github.com/!data!dog/datadog-agent/pkg/[email protected]/traceutil/otel_util.go:413:46: not enough arguments in call to tr.ResourceToSource
have (context.Context, pcommon.Resource, "go.opentelemetry.io/otel/attribute".Set)
want (context.Context, pcommon.Resource, "go.opentelemetry.io/otel/attribute".Set, "github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes".HostFromAttributesHandler)
Cause
The error is due to a package version mismatch between github.com/DataDog/datadog-agent/pkg/trace and github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes. The latest version of the latter package changed the signature of an exported method.
Solution
Downgrade github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes to v0.24.0. This will ensure the correct signature for the exported method is found.
Specifically, if you have this in your go.mod file
Problem
Recently we have been seeing the following error when building lambda functions which require
datadog-lambda-go
Cause
The error is due to a package version mismatch between
github.com/DataDog/datadog-agent/pkg/trace
andgithub.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes
. The latest version of the latter package changed the signature of an exported method.Solution
Downgrade
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes
tov0.24.0
. This will ensure the correct signature for the exported method is found.Specifically, if you have this in your go.mod file
Change it to
Then run
go mod tidy
and reattempt to build your package.The text was updated successfully, but these errors were encountered: