Open ncabanis opened 1 month ago
Pinging code owners:
exporter/file: @atingchen
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This might be a problem with pdata - the fileexporter just calls pdata functions to marshal JSON.
Component(s)
exporter/file
What happened?
Description
Traces written using the fileexporter have traceId, spanId or parentSpanId not base64 encoded. This leads to errors, when reading the JSON files back in.
Steps to Reproduce
Expected Result
Use proto3 standard defined JSON Mapping for mapping between protobuf and json. trace_id and span_id is base64 encoded in OTLP/HTTP+JSON. See: https://github.com/open-telemetry/oteps/blob/main/text/0122-otlp-http-json.md#json-mapping
Example:
Actual Result
Example:
Collector version
v106.1
Environment information
Environment
OS: (e.g., "Ubuntu 20.04") Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response