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
Expose OTLP HTTP protocol selection through each SDK telemetry config and map the values to the standard OpenTelemetry protocol environment variables when spawning the Copilot CLI.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| 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
2235
| Source name |`sourceName`|`source_name`|`SourceName`|`source_name`|`sourceName`|`SourceName`| Instrumentation scope name |
2233
2236
| Capture content |`captureContent`|`capture_content`|`CaptureContent`|`capture_content`|`captureContent`|`CaptureContent`| Whether to capture message content |
2234
2237
2238
+
The OTLP protocol fields configure the CLI's `"otlp-http"` exporter. Leave them unset to use the CLI default (`"http/json"`), set the general protocol for both traces and metrics, or use the traces/metrics fields to override one signal.
2239
+
2235
2240
### File export
2236
2241
2237
2242
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
112
| Source name |`sourceName`|`source_name`|`SourceName`|`SourceName`|`sourceName`|`source_name`| Instrumentation scope name |
110
113
| Capture content |`captureContent`|`capture_content`|`CaptureContent`|`CaptureContent`|`captureContent`|`capture_content`| Whether to capture message content |
111
114
115
+
The OTLP protocol fields configure the CLI's `"otlp-http"` exporter. Leave them unset to use the CLI default (`"http/json"`), set the general protocol for both traces and metrics, or use the traces/metrics fields to override one signal.
116
+
112
117
### Trace context propagation
113
118
114
119
> **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