Skip to content

OpenTelemetryTracingProvider: New configurations for resource detectors#3002

Merged
istio-testing merged 11 commits intoistio:masterfrom
dynatrace-oss-contrib:full-otel-config-preview
Feb 2, 2024
Merged

OpenTelemetryTracingProvider: New configurations for resource detectors#3002
istio-testing merged 11 commits intoistio:masterfrom
dynatrace-oss-contrib:full-otel-config-preview

Conversation

@joaopgrassi
Copy link
Member

@joaopgrassi joaopgrassi commented Nov 27, 2023

This PR is an alternative to #2998 to showcase "all" new MeshConfig properties we would need to have to support all the new OpenTelemetry tracing features in Envoy. I'm creating this so the Istio community can see it and maybe this influences the discussions.

  • HTTP Exporter
  • Custom Sampler
  • Resource Detectors

All of those features are defined by the OpenTelemetry project and were added to Envoy as a mechanism to enhance the traces produced by it. More specially, because with the eminent OpenTracing deprecation there, some observability back-ends will be affected and by improving the OTel support in Envoy users can switch to that.

EDIT

I modified this PR to only include the resource detectors. Sampling will be added in a separated PR to avoid bloating.

Closes istio/istio#48885

@istio-testing istio-testing added do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-ok-to-test labels Nov 27, 2023
@istio-testing
Copy link
Collaborator

Hi @joaopgrassi. Thanks for your PR.

I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@joaopgrassi joaopgrassi changed the title WIP: Extend OpenTelemetry tracing extension OpenTelemetryTracingProvider: Extend with new Envoy extensions Nov 27, 2023
@joaopgrassi joaopgrassi force-pushed the full-otel-config-preview branch from f7833a5 to 05d3b7e Compare December 1, 2023 14:12
@joaopgrassi joaopgrassi marked this pull request as ready for review January 24, 2024 10:26
@joaopgrassi joaopgrassi requested a review from a team as a code owner January 24, 2024 10:26
@istio-testing istio-testing removed the do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. label Jan 24, 2024
@joaopgrassi
Copy link
Member Author

Note: I have a smaller PR that just introduces the HTTP exporter #2998. This was just to show the "full" amount of new configuration we will need to support the new OTel tracing features in Envoy

@zirain
Copy link
Member

zirain commented Jan 24, 2024

/ok-to-test

@istio-testing istio-testing added ok-to-test Set this label allow normal testing to take place for a PR not submitted by an Istio org member. and removed needs-ok-to-test labels Jan 24, 2024
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Jan 25, 2024
@zirain
Copy link
Member

zirain commented Jan 27, 2024

#2998 merged, can we close this? cc @joaopgrassi

@joaopgrassi
Copy link
Member Author

@zirain #2998 added only the HTTP exporter configuration. We still need new configuration for the resource detectors part and samplers. I will rebase this and remove the http exporter, as that is already in, but the rest here still apply.

@costinm
Copy link
Contributor

costinm commented Jan 31, 2024 via email

@istio-testing istio-testing added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed needs-rebase Indicates a PR needs to be rebased before being merged size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 31, 2024
@joaopgrassi joaopgrassi changed the title OpenTelemetryTracingProvider: Extend with new Envoy extensions OpenTelemetryTracingProvider: New configurations for resource detectors Jan 31, 2024
@joaopgrassi
Copy link
Member Author

Hi all, I have rebased this PR on latest master, given #2998 was merged. I think we have some common understanding/agreement on how to go forward so I also removed the sampling parts of the PR. I will focus this on resource detectors and send a new PR for sampling once we have the code merged in Envoy for the Dynatrace sampler.

CC @howardjohn @zirain

@istio-testing istio-testing added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 31, 2024
Copy link
Member

@zirain zirain left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@linsun
Copy link
Member

linsun commented Feb 7, 2024

Per @zirain's req, we discussed the request to cherry pick this to Istio 1.21 branch in today's istio WG meeting. The general consensus is all api changes will require TOC approval to cherry pick if this misses the release branch cutting. Given there is still impl PR open on this and we don't see a strong reason to make an exception for cherry pick this API change, we prefer to not cherry pick and wait till it lands in istio 1.22.

@linsun
Copy link
Member

linsun commented Feb 7, 2024

cc @istio/release-managers-1-21 ^^^

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

Labels

ok-to-test Set this label allow normal testing to take place for a PR not submitted by an Istio org member. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support OpenTelemetry resource attributes in traces

8 participants