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

[exporter/datadog] Expose source provider #37668

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mackjmr
Copy link
Member

@mackjmr mackjmr commented Feb 4, 2025

Description

This PR moves hostmetadata, clientutil and scrub out of datadogexporter into pkg/datadog. clientutil and scrub were moved because hostmetadata relies on it. hostmetadata was moved because it needs to be imported in agent.

The packages were kept under an internal folder, but there are new packages which exposes the functions needed from outside:

  • github.com/open-telemetry/opentelemetry-collector-contrib/pkg/datadog/hostmetadata => github.com/open-telemetry/opentelemetry-collector-contrib/pkg/datadog/internal/hostmetadata
  • github.com/open-telemetry/opentelemetry-collector-contrib/pkg/datadog/clientutil => github.com/open-telemetry/opentelemetry-collector-contrib/pkg/datadog/internal/clientutil
  • github.com/open-telemetry/opentelemetry-collector-contrib/pkg/datadog/scrub => github.com/open-telemetry/opentelemetry-collector-contrib/pkg/datadog/internal/scrub

Link to tracking issue

Fixes

Testing

Documentation

@songy23
Copy link
Member

songy23 commented Feb 4, 2025

This warrants an API changelog too

@mackjmr
Copy link
Member Author

mackjmr commented Feb 5, 2025

CI failures will be solved once #37499 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants