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/datadogexporter] Use a Consumer interface for decoupling from zorkian's package #5315

Merged
merged 9 commits into from
Oct 15, 2021

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Sep 21, 2021

Description:

Creates a Consumer interface that consumes timeseries and sketches metrics.
Splits zorkian's specific code into this new interface.

Testing: Amended unit tests. Tested with end to end unit testing.

Documentation: n/a this is an internal refactor with no visible user changes.

@mx-psi mx-psi force-pushed the mx-psi/use-store-interface branch 2 times, most recently from 32db07a to 0499a8e Compare September 21, 2021 14:07
Copy link
Contributor

@KSerrania KSerrania left a comment

Choose a reason for hiding this comment

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

Left two comments, but otherwise LGTM

@mx-psi mx-psi force-pushed the mx-psi/use-store-interface branch from 2bf0b97 to 8a3d299 Compare September 23, 2021 13:11
@mx-psi mx-psi force-pushed the mx-psi/use-store-interface branch 2 times, most recently from 7f81efb to 1686b0e Compare September 23, 2021 16:00
@mx-psi mx-psi force-pushed the mx-psi/use-store-interface branch from 1686b0e to 7f25329 Compare September 24, 2021 08:28
mx-psi added a commit to DataDog/datadog-agent that referenced this pull request Sep 27, 2021
* [exporter/datadogexporter] Copy main branch contents

* Decouple translator configuration from Collector configuration (open-telemetry/opentelemetry-collector-contrib#5270)

* Use a `Consumer` interface for decoupling from zorkian's package (open-telemetry/opentelemetry-collector-contrib#5315)

* Make tests pass
@mx-psi mx-psi marked this pull request as ready for review October 5, 2021 15:09
@mx-psi mx-psi requested review from a team, anuraaga and KSerrania October 5, 2021 15:09
@mx-psi
Copy link
Member Author

mx-psi commented Oct 5, 2021

@KSerrania mind having one last look? One 'easy' way to make sure everything is okay is by doing a diff between the Datadog Agent pkg/otlp/model/translator folder and the translator here (there are some differences because of #5457 and import paths but that should be it)

@bogdandrutu
Copy link
Member

Please rebase

@mx-psi
Copy link
Member Author

mx-psi commented Oct 14, 2021

@KSerrania ping

Copy link
Contributor

@KSerrania KSerrania left a comment

Choose a reason for hiding this comment

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

LGTM, I also checked the diff between exporter/datadogexporter/internal/translator here and pkg/otlp/model/translator in datadog-agent and it looks good to me.

@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label Oct 14, 2021
@bogdandrutu bogdandrutu merged commit a244c7e into open-telemetry:main Oct 15, 2021
hex1848 pushed a commit to hex1848/opentelemetry-collector-contrib that referenced this pull request Jun 2, 2022
zandrewitte pushed a commit to StackVista/stackstate-agent that referenced this pull request Nov 17, 2022
* [exporter/datadogexporter] Copy main branch contents

* Decouple translator configuration from Collector configuration (open-telemetry/opentelemetry-collector-contrib#5270)

* Use a `Consumer` interface for decoupling from zorkian's package (open-telemetry/opentelemetry-collector-contrib#5315)

* Make tests pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants