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

Use grpc exporter for agent test workflow. #982

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

zzhlogin
Copy link
Contributor

Description of changes:
Add OTEL_EXPORTER_OTLP_PROTOCOL to grpc for instrumentation as in version v2.0.0:

The default OTLP protocol has been changed from grpc to http/protobuf in orderto align with the specification.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@zzhlogin zzhlogin requested a review from a team as a code owner December 23, 2024 22:21
@srprash
Copy link
Contributor

srprash commented Dec 24, 2024

Can you explain why do we need to explicitly export using grpc and not the default http?

@zzhlogin
Copy link
Contributor Author

Can you explain why do we need to explicitly export using grpc and not the default http?

Previously, in v1.x, the default protocol is grpc, and the smoke tests is using the default protocol here.

Starting from upstream v2.x, the default OTLP protocol has been changed from grpc to http/protobuf (release note). So that we need to specifically set the protocol using env OTEL_EXPORTER_OTLP_PROTOCOL to align with smoke test setup.

@srprash
Copy link
Contributor

srprash commented Dec 24, 2024

Thanks. It makes sense now. :)

@srprash srprash merged commit 5960ea3 into aws-observability:main Dec 24, 2024
4 checks passed
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.

2 participants