-
Notifications
You must be signed in to change notification settings - Fork 651
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 insecure configuration #2350
Support insecure configuration #2350
Conversation
...porter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py
Outdated
Show resolved
Hide resolved
...porter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py
Outdated
Show resolved
Hide resolved
...porter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py
Outdated
Show resolved
Hide resolved
exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_trace_exporter.py
Outdated
Show resolved
Hide resolved
You seem to have unrelated test failures and unit tests do not connect with actual collector instance. I will take a look at it. |
…s, change default parameter value
...pentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py
Outdated
Show resolved
Hide resolved
...pentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py
Outdated
Show resolved
Hide resolved
...pentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py
Outdated
Show resolved
Hide resolved
exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_trace_exporter.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/environment_variables.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/environment_variables.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears we'll also need to add OTEL_EXPORTER_OTLP_SPAN_INSECURE
and OTEL_EXPORTER_OTLP_METRIC_INSECURE
to be compliant with the spec https://github.com/open-telemetry/opentelemetry-specification/pull/2240/files
Do we need to support both even if didn't have support for env prior? My understanding is SIGs that already implemented |
...pentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py
Show resolved
Hide resolved
@codeboten @lonewolf3739
I believe since we did not support |
Thanks for the reviews folks. I believe all the feedback so far has been incorporated. |
Modified HTTPS cases for tests for the recently merged metrics exporter #2323. |
@areveny |
@areveny You pushed changes just before I edited the Leighton's comment. It should |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please resolve conflicts and change *_METRIC_*
-> *_METRICS_*
.
@lonewolf3739 |
Should we wait until they are added here https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options? |
Thanks folks, really appreciate all the guidance. I'll keep an eye out for this on the logging otlp exporter and take that up when it's ready. |
We missed something here. Since we introduced a change in SDK that the exporter depends on, the exporter should have bumped it's minimum required SDK version to the in development version. See #2438 for details. |
Description
This updates the OTLP gRPC exporter behavior to better conform to the spec.
insecure
. (Not in the linked issue but in the spec:insecure:default=False
.)insecure=True
.insecure
flag by environment variable.Fixes #1981
Type of change
How Has This Been Tested?
Added unit tests to
test_otlp_trace_exporter.py
that ensure the correct endpoint and correct secure/insecure channel is being used. New cases ensure the default is set and the https scheme supersedes theinsecure
option and test the new environment variable.Does This PR Require a Contrib Repo Change?
Checklist: