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

support grpc configuration for opentelemetry extension provider #3301

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

Kuromesi
Copy link
Contributor

This PR aims to support this feature request istio/istio#52873.

Add grpc filed in OpenTelemetryTracingProvider to support grpc headers configuration.

This is quite useful when the opentelemetry endpoint get authentication information from grpc request headers, for example, Alibaba Cloud OpenTelemetry uses header Authentication: xxxx_xxxx for authentication.

Copy link

linux-foundation-easycla bot commented Aug 27, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@istio-policy-bot
Copy link

😊 Welcome @Kuromesi! This is either your first contribution to the Istio api repo, or it's been
a while since you've been here.

You can learn more about the Istio working groups, Code of Conduct, and contribution guidelines
by referring to Contributing to Istio.

Thanks for contributing!

Courtesy of your friendly welcome wagon.

@istio-testing istio-testing added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test labels Aug 27, 2024
@istio-testing
Copy link
Collaborator

Hi @Kuromesi. 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.

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-sigs/prow repository.

Copy link
Member

@howardjohn howardjohn left a comment

Choose a reason for hiding this comment

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

lgtm overall

mesh/v1alpha1/config.proto Outdated Show resolved Hide resolved
mesh/v1alpha1/config.proto Outdated Show resolved Hide resolved
mesh/v1alpha1/config.proto Outdated Show resolved Hide resolved
mesh/v1alpha1/config.proto Outdated Show resolved Hide resolved
@Kuromesi
Copy link
Contributor Author

lgtm overall

Thanks for the review!

@zirain
Copy link
Member

zirain commented Aug 28, 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 Aug 28, 2024
Comment on lines 1 to 8
apiVersion: release-notes/v2
kind: feature
area: telemetry
issue:
- https://github.com/istio/istio/issues/52873
releaseNotes:
- |
**Added** new configuration options to `OpenTelemetryTracingProvider` in `MeshConfig` to allow adding headers when exporting OpenTelemetry traces via GRPC.
Copy link
Member

Choose a reason for hiding this comment

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

can you remove this part here, and add it when implement it.

if you cannot implement before v1.24 came out(there's a long time), please make the API as hidden.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I've completed the pilot coding, and it works fine on my cluster. However, I haven't finished coding the unit and integration tests yet. I believe the implementation will be done before the v1.24 release. :)

@zirain zirain added the release-notes-none Indicates a PR that does not require release notes. label Aug 28, 2024
@zirain
Copy link
Member

zirain commented Aug 28, 2024

/retest

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!

Comment on lines +1105 to +1106
// When empty, traces will check whether HTTP is set.
// If not, traces will use default GRPC configurations.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// When empty, traces will check whether HTTP is set.
// If not, traces will use default GRPC configurations.
// When empty, traces will use the default gRPC configuration.
// If `http` is set, HTTP will be used instead.

Copy link
Member

Choose a reason for hiding this comment

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

@Kuromesi can you update these?

@istio-testing istio-testing merged commit d0cf7ac into istio:master Aug 28, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement ok-to-test Set this label allow normal testing to take place for a PR not submitted by an Istio org member. release-notes-none Indicates a PR that does not require release notes. 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.

5 participants