SumoLogic / sumologic-otel-collector

Sumo Logic Distribution for OpenTelemetry Collector
Apache License 2.0
41 stars 37 forks source link

Sumologic exporter not supporting comma in X-Sumo-Fields causing improper rendering of labels in headers. #1171

Open rupeshnemade opened 1 year ago

rupeshnemade commented 1 year ago

Kuberenets metadata section contains labels and in OTEL we set them as below in log body- - set(attributes["kubernetes.labels"], resource.attributes["kubernetes.labels"])

Sumo can render it as expected as above rule sets labels in both resource and record attributes.

image

If we try to keep it only in default resource attributes then its rendering gets impacted.

image

It might be due to malfunctioning of Sumologic exporter JSON formatting.

swiatekm commented 1 year ago

This is a limitation of Sumo http sources. Even though Sumo can actually render the values, it can't ingest them as header values if they contain commas.

The same limitation shouldn't be present for the OTLP source, so you could try that instead.

rupeshnemade commented 1 year ago

@swiatekm-sumo Thanks for the update I will log Sumo issue.

rupeshnemade commented 1 year ago

@swiatekm-sumo Any update on this issue. I can see the Sumo support ticket got closed.

rupeshnemade commented 9 months ago

Any timelines for fixing this for HTTP source ?