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] Simplify and add tags to logs from Datadog Exporter #16080

Conversation

liustanley
Copy link
Contributor

@liustanley liustanley commented Nov 4, 2022

Description:

Link to tracking Issue: #15387

Testing: Added unit tests in translator_test.go

@liustanley liustanley requested a review from a team November 4, 2022 17:20
@liustanley liustanley requested a review from mx-psi as a code owner November 4, 2022 17:20
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 4, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@liustanley liustanley requested a review from dineshg13 November 7, 2022 18:01
@liustanley liustanley changed the title Simplify and add tags to logs from Datadog Exporter [exporter/datadog] Simplify and add tags to logs from Datadog Exporter Nov 7, 2022
@liustanley liustanley requested review from mx-psi and dineshg13 and removed request for dineshg13 and mx-psi November 8, 2022 16:49
@@ -52,6 +52,7 @@ require (
github.com/Showmax/go-fqdn v1.0.0 // indirect
github.com/antonmedv/expr v1.9.0 // indirect
github.com/armon/go-metrics v0.3.10 // indirect
github.com/benbjohnson/clock v1.3.0 // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this being added ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This got added when I imported "go.uber.org/zap/zaptest" in translator_test.go

exporter/datadogexporter/internal/logs/translator.go Outdated Show resolved Hide resolved
exporter/datadogexporter/internal/logs/translator.go Outdated Show resolved Hide resolved
exporter/datadogexporter/internal/logs/sender.go Outdated Show resolved Hide resolved
Copy link
Member

@dineshg13 dineshg13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM

@mx-psi mx-psi merged commit cc0c784 into open-telemetry:main Nov 9, 2022
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
open-telemetry#16080)

* Adding logic to translator

* Fix trace id transform and add tests

* Tags change and tests

* Address requested changes

* Add otel tag to logs exporter tests

* Fix tags issue by setting ddtags in sender opts

* Address PR changes

* Change tag name and add changelog

* Address PR comments

* Fix if else structure

* Remove logs

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

Successfully merging this pull request may close these issues.

[exporter/datadog] Add support for custom list of attribute -> tag conversion
3 participants