Support insecure configuration#2350
Support insecure configuration#2350lzchen merged 14 commits intoopen-telemetry:mainfrom areveny:support-insecure-configuration
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
codeboten
left a comment
There was a problem hiding this comment.
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 |
srikanthccv
left a comment
There was a problem hiding this comment.
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.insecureflag by environment variable.Fixes #1981
Type of change
How Has This Been Tested?
Added unit tests to
test_otlp_trace_exporter.pythat ensure the correct endpoint and correct secure/insecure channel is being used. New cases ensure the default is set and the https scheme supersedes theinsecureoption and test the new environment variable.Does This PR Require a Contrib Repo Change?
Checklist: