Description
The AgentCore Runtime currently only starts the ADOT collector sidecar (listening on localhost:4318) when it detects opentelemetry-instrument in the container entrypoint — which is Python-specific. For .NET (and Java/TypeScript) agents that use the OpenTelemetry SDK directly to export OTLP over HTTP/Protobuf to localhost:4318, nothing is listening on that port, so telemetry is silently dropped.
Current behavior
- Python agents: Runtime detects
opentelemetry-instrument in entrypoint → starts ADOT collector sidecar on localhost:4318 → telemetry flows to CloudWatch/X-Ray ✓
- .NET/Java/TS agents: Runtime does not start the sidecar →
localhost:4318 is unreachable → OTLP export silently fails → no telemetry in CloudWatch ✗
Expected behavior
The ADOT collector sidecar should start for all agent containers regardless of language/entrypoint, accepting OTLP HTTP/Protobuf on localhost:4318 and forwarding to CloudWatch (traces → X-Ray, metrics → CloudWatch Metrics, logs → CloudWatch Logs).
Acceptance Criteria
Additional Context
No response
Description
The AgentCore Runtime currently only starts the ADOT collector sidecar (listening on
localhost:4318) when it detectsopentelemetry-instrumentin the container entrypoint — which is Python-specific. For .NET (and Java/TypeScript) agents that use the OpenTelemetry SDK directly to export OTLP over HTTP/Protobuf tolocalhost:4318, nothing is listening on that port, so telemetry is silently dropped.Current behavior
opentelemetry-instrumentin entrypoint → starts ADOT collector sidecar onlocalhost:4318→ telemetry flows to CloudWatch/X-Ray ✓localhost:4318is unreachable → OTLP export silently fails → no telemetry in CloudWatch ✗Expected behavior
The ADOT collector sidecar should start for all agent containers regardless of language/entrypoint, accepting OTLP HTTP/Protobuf on
localhost:4318and forwarding to CloudWatch (traces → X-Ray, metrics → CloudWatch Metrics, logs → CloudWatch Logs).Acceptance Criteria
localhost:4318(HTTP/Protobuf) for containers with any entrypoint, not just those usingopentelemetry-instrumentlocalhost:4318have their traces appear in X-Ray via CloudWatch Transaction Searchlocalhost:4318have their metrics appear in CloudWatch Metricslocalhost:4318have their structured logs appear in CloudWatch LogsOTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318convention works out of the boxAdditional Context
No response