You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
150696: pkg/util/log: add headers to otlp sink r=arjunmahishi a=TheComputerM
Headers can now be attached to requests made through the OTLP sink. In HTTP mode, these are sent as standard HTTP headers. In gRPC mode, they are added to the request context and sent as gRPC metadata.
Epic: none
Release note (general change): Added headers config option to OTLP log sink.
Co-authored-by: Mudit Somani <[email protected]>
|`channels`| the list of logging channels that use this sink. See the [channel selection configuration](#channel-format) section for details. |
291
291
|`address`| the network address of the gRPC endpoint for ingestion of logs on your OpenTelemetry Collector/Platform. The host/address and port parts are separated with a colon. |
292
292
|`mode`| decides which protocol to use for exporting logs, can be "grpc" or "http". Set to "grpc" by default. Inherited from `otlp-defaults.mode` if not specified. |
293
+
|`headers`| a list of headers to attach to each gRPC or HTTP request depending on the mode selected, the sink adds the standard headers so this option should only be used for specific headers like api keys which the downstream app expects. Inherited from `otlp-defaults.headers` if not specified. |
293
294
|`compression`| can be "none" or "gzip" to enable gzip compression. Set to "gzip" by default. Inherited from `otlp-defaults.compression` if not specified. |
0 commit comments