Closed emoragaf closed 11 months ago
You need to set it in the headers parameter in the OtlpConfiguration
object before passing it to your exporter.
@bryce-b I don't get the option listed to pass config to the exporter 🤔 (I do see it for the grpc exporter in contrast) could you give me an example for it please
@emoragaf Ah, it looks like the OTLP Http trace exported doesn't have the same interface implemented. This is an oversight. I'll create an issue to get it fixed, but it may not be fixed swiftly. Alternatively, you could use the GRPC variant, in the interim.
@emoragaf the HTTP client should accept http headers now.
Hello, first time working with swift. And I'm building a thin wrapper around this lib, using the OTLP http exporter for traces
I need to set some headers for authentication, a case I feel is common enough, but not covered in the example.
Any pointers on how to accomplish it?