ResourceLogs emitted by experimental-otlp/stdout
lack line breaks being incompatible with the OTelCol otlpjson
connector
#6836
Labels
Bug
Something isn't working
Describe the bug
ResourceLogs emitted by
OTEL_LOGS_EXPORTER="experimental-otlp/stdout"
lack line breaks being incompatible with the OTel Collectorfilelog
receiver andotlpjson
connector.Example of 2 consecutive log lines that are outputted in stdout without any character between them.
Example failing OTel Collector pipeline, it expects line breaks between log records
Steps to reproduce
OTEL_LOGS_EXPORTER="experimental-otlp/stdout"
{"resourceLogs":[{"resource":...
{"resourceLogs":[{"resource":...
) lack line break delimitersWhat did you expect to see?
OTLP JSON log records (
{"resourceLogs":[{"resource":...
) delimited by line breaks so it can be parsed by the OTel Collectorfilelog
receiver andotlpjson
connectorWhat did you see instead?
OTLP JSON log records (
{"resourceLogs":[{"resource":...
) lacking delilmitersWhat version and what artifacts are you using?
Artifacts: OpenTelemetry Java Instrumentation Agent with the
experimental-otlp/stdout
exporterVersion:
v2.9.0
How did you reference these artifacts? `java -javaagent:...
Environment
OS: MacOS 15.0.#1
Runtime (if different from JDK above):
openjdk version "21.0.5" 2024-10-15 / OpenJDK 64-Bit Server VM Homebrew (build 21.0.5, mixed mode, sharing)
Additional context
cc @zeitlinger
The text was updated successfully, but these errors were encountered: