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

[BUG] Not enough arguments in call to ResourceToSource #33597

Open
vnguyen-enova opened this issue Jan 30, 2025 · 2 comments
Open

[BUG] Not enough arguments in call to ResourceToSource #33597

vnguyen-enova opened this issue Jan 30, 2025 · 2 comments
Labels
team/agent-apm trace-agent

Comments

@vnguyen-enova
Copy link

Describe What Happened
ResourceToSource was recently changed to require the parameter hostFromAttributesHandler of type attributes.HostFromAttributesHandler

@github-actions github-actions bot added the team/agent-apm trace-agent label Jan 30, 2025
@ajgajg1134
Copy link
Contributor

Hello! It looks like we're already working on a PR here #33370 to resolve this issue.

Where are you running into this issue? If this is due to importing pkg/trace or some other portion of the datadog agent you can work around this temporarily by using go get github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/[email protected] or using a replace directive in your go.mod file. Note that the specific version you choose here will depend on which version of the datadog-agent you're importing.

@igormpb
Copy link

igormpb commented Jan 30, 2025

I temporarily solved it by replacing it with version 0.23.0 in go.mod
replace github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes => github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.23.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team/agent-apm trace-agent
Projects
None yet
Development

No branches or pull requests

3 participants