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
| OTLP protocol |`otlpProtocol`|`otlp_protocol`|`OTLPProtocol`|`otlp_protocol`|`otlpProtocol`|`OtlpProtocol`| OTLP HTTP protocol for all signals: `"http/json"` or `"http/protobuf"`|
| Exporter type |`exporterType`|`exporter_type`|`ExporterType`|`exporter_type`|`exporterType`|`ExporterType`|`"otlp-http"` or `"file"`|
2232
2233
| Source name |`sourceName`|`source_name`|`SourceName`|`source_name`|`sourceName`|`SourceName`| Instrumentation scope name |
2233
2234
| Capture content |`captureContent`|`capture_content`|`CaptureContent`|`capture_content`|`captureContent`|`CaptureContent`| Whether to capture message content |
2234
2235
2236
+
The OTLP protocol field configures the CLI's `"otlp-http"` exporter for all signals. Leave it unset to use the CLI default, or set it to `"http/protobuf"` to export protobuf over HTTP.
2237
+
2235
2238
### File export
2236
2239
2237
2240
To write traces to a local file instead of an OTLP endpoint:
| OTLP protocol |`otlpProtocol`|`otlp_protocol`|`OTLPProtocol`|`OtlpProtocol`|`otlpProtocol`|`otlp_protocol`| OTLP HTTP protocol for all signals: `"http/json"` or `"http/protobuf"`|
| Exporter type |`exporterType`|`exporter_type`|`ExporterType`|`ExporterType`|`exporterType`|`exporter_type`|`"otlp-http"` or `"file"`|
109
110
| Source name |`sourceName`|`source_name`|`SourceName`|`SourceName`|`sourceName`|`source_name`| Instrumentation scope name |
110
111
| Capture content |`captureContent`|`capture_content`|`CaptureContent`|`CaptureContent`|`captureContent`|`capture_content`| Whether to capture message content |
111
112
113
+
The OTLP protocol field configures the CLI's `"otlp-http"` exporter for all signals. Leave it unset to use the CLI default, or set it to `"http/protobuf"` to export protobuf over HTTP.
114
+
112
115
### Trace context propagation
113
116
114
117
> **Most users don't need this.** The `TelemetryConfig` above is all you need to collect traces from the CLI. The trace context propagation described in this section is an **advanced feature** for applications that create their own OpenTelemetry spans and want them to appear in the **same distributed trace** as the CLI's spans.
0 commit comments