open-telemetry / opentelemetry-python

OpenTelemetry Python API and SDK
https://opentelemetry.io
Apache License 2.0
1.67k stars 570 forks source link

Otlp http exporter client cert #3883

Open xman1979 opened 2 months ago

xman1979 commented 2 months ago

Description

Allow to pass a client certificate to the OTLPLogExporter In our environment, the server needs to authenticate the client, in this PR, it simply forward the client certificate to the requests.post()

Did not hookup with environment variables yet, open the discussion here and we can add later https://github.com/open-telemetry/opentelemetry-python/discussions/3882#discussion-6565784

Fixes # (issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

This test requires the server setup to authenticate the client certificate

Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:

Checklist:

linux-foundation-easycla[bot] commented 2 months ago

CLA Signed


The committers listed above are authorized under a signed CLA.