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

opentelemetrytracer: Dynatrace sampler: Use http_service in configuration. #22

Conversation

samohte
Copy link

@samohte samohte commented Mar 21, 2024

Commit Message: change Dynatrace sampler config to use http_service
Additional Description: In #32598 a custom Dynatrace sampler was added to Envoy. This sampler fetches its configuration via an HTTP call from a Dynatrace cluster. The endpoint and some additional information required to perform the HTTP call can be set in the Envoy config file.
While working on Istio changes to allow to set the endpoint, it turned out that it would be easier to use http_service instead of http_uri.
This also allows to configure additional HTTP headers which are added to the request.
Another benefit is that the configuration is now aligned to the HTTP exporter, see https://github.com/envoyproxy/envoy/blob/main/api/envoy/config/trace/v3/opentelemetry.proto#L42

Since the Dynatrace sampler is not yet released it should be ok to do config breaking change.

Risk Level: LOW
Testing: Unit, Integration, Manual
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
[Optional Runtime guard:] N/A
[Optional Fixes #Issue] N/A
[Optional Fixes commit #PR or SHA] #32598, #32848
[Optional Deprecated:] N/A
[Optional API Considerations:] N/A

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>
@samohte samohte changed the title opentelemetry: Dynatrace sampler: Use http service in configuraiton. opentelemetry: Dynatrace sampler: Use http service in configuration. Mar 21, 2024
@samohte samohte changed the title opentelemetry: Dynatrace sampler: Use http service in configuration. opentelemetrytracer: Dynatrace sampler: Use http service in configuration. Mar 21, 2024
@samohte samohte changed the title opentelemetrytracer: Dynatrace sampler: Use http service in configuration. opentelemetrytracer: Dynatrace sampler: Use http_service in configuration. Mar 21, 2024
samohte and others added 2 commits March 21, 2024 10:20
…ce_sampler.proto

Co-authored-by: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com>
Signed-off-by: Thomas Ebner <96168670+samohte@users.noreply.github.com>
Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>
@samohte samohte merged commit 815fc9c into feat/use-http-service-to-configure-dynatrace-sampler Mar 21, 2024
3 checks passed
@samohte samohte deleted the feat/use-http-service-in-dynatrace-sampler-config branch March 21, 2024 11:41
samohte added a commit that referenced this pull request Mar 28, 2024
envoyproxy#33034)

* opentelemetrytracer: Dynatrace sampler: Use http_service in configuration. (#22)

* change dynatrace sampler config to use http_service

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>
Signed-off-by: Thomas Ebner <96168670+samohte@users.noreply.github.com>
Co-authored-by: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com>

* modify protobuf doc

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

* remove empty line in proto file

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

* added empty line in proto file

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

* try to fix "Error in "code-block" directive"

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

* fix "Error in "code-block" directive"

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

* change proto documentation again

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

* review feedback: keep unused values marked as deprecated. Add a new
field.

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

* Revert "review feedback: keep unused values marked as deprecated. Add a new"

This reverts commit cec4b0f.

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>

---------

Signed-off-by: thomas.ebner <thomas.ebner@dynatrace.com>
Signed-off-by: Thomas Ebner <96168670+samohte@users.noreply.github.com>
Co-authored-by: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants