Open
Description
Description
When working on the example for config
, I wasn't able to find a way to set "pretty print" to false for the console exporter. Example config:
logger_provider:
processors:
- simple:
exporter:
console: {}
Running the example yields this:
{
"Timestamp": "2025-02-18T10:48:37.615276653+01:00",
"ObservedTimestamp": "2025-02-18T10:48:37.615278311+01:00",
"Severity": 9,
"SeverityText": "",
"Body": {
"Type": "String",
"Value": "Starting the config example"
},
"Attributes": [],
"TraceID": "00000000000000000000000000000000",
"SpanID": "0000000000000000",
"TraceFlags": "00",
"Resource": [
{
"Key": "service.name",
"Value": {
"Type": "STRING",
"Value": "my-service-name"
}
},
{
"Key": "service.version",
"Value": {
"Type": "STRING",
"Value": "0.0.1-dev"
}
}
],
"Scope": {
"Name": "go.opentelemetry.io/contrib/examples/config",
"Version": "v0.3.0",
"SchemaURL": "",
"Attributes": {}
},
"DroppedAttributes": 0
}
This isn't usable other than for debugging OTel-config itself, disabling pretty-print won't likely make it MUCH better, but will at least show one record per line.
Metadata
Metadata
Assignees
Type
Projects
Status
Low priority