-
Notifications
You must be signed in to change notification settings - Fork 578
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
otlpHTTPLogExporter, otlpGRPCLogExporter, etc do not support fields like OTLP.Certificate #6351
Comments
I think that this code is used in the collector's internal telemetry exporting too: https://github.com/open-telemetry/opentelemetry-collector/blob/9d2685f404ef65b46152ae80c36ff84f303e3cc6/service/service.go#L133C5-L138C7 I believe the fix for this is as simple as something like this case for Certificate:
If that sounds good to maintainers, I'd be glad to submit a PR for it, I'd just like to know I'm barking up the right tree first. |
I created a PR for a small part of this in the collector repo: |
cc @pellared @codeboten as code owners. |
Fixes open-telemetry#6351 Signed-off-by: Alex Boten <[email protected]>
Thanks @mattsains & @ms-jcorley for taking a look at this. I opened a PR that takes the code submitted in open-telemetry/opentelemetry-collector#11633 to get the |
Fixes open-telemetry#6351 Signed-off-by: Alex Boten <[email protected]>
Fixes open-telemetry#6351 Signed-off-by: Alex Boten <[email protected]>
Fixes open-telemetry#6351 Signed-off-by: Alex Boten <[email protected]>
Fixes open-telemetry#6351 Signed-off-by: Alex Boten <[email protected]>
Fixes open-telemetry#6351 Signed-off-by: Alex Boten <[email protected]>
Fixes open-telemetry#6351 Signed-off-by: Alex Boten <[email protected]>
Part of #6351 --------- Signed-off-by: Alex Boten <[email protected]>
Description
The OTLP configuration type has fields Certificate, ClientCertificate, ClientKey, HeadersList and Insecure:
opentelemetry-go-contrib/config/generated_config.go
Lines 258 to 264 in 6e79f7c
These fields are not read/supported by constructors like otlpGRPCLogExporter, otlpHTTPLogExporter, otlpHTTPMetricExporter, otlpGRPCMetricExporter, otlpGRPCSpanExporter and otlpHTTPSpanExporter.
Environment
config
version: 6e79f7c, 1.32.0Steps To Reproduce
An example of how to trigger this is to call NewSDK specifying a custom certificate. This certificate will not be used when connecting to the trace endpoint specified.
Expected behavior
These fields should be respected when creating log, trace and metric exporters.
The text was updated successfully, but these errors were encountered: