AWS Bedrock AgentCore Documentation
Bedrock AgentCore Runtime with Strands and Arize AX Notebook
Install
Setup
Now we’ll configure OpenTelemetry with ourStrandsToOpenInferenceProcessor. This processor is responsible for converting Strands telemetry data to the OpenInference format that Arize AX can understand and visualize.
The processor handles:
- Converting Strands span kinds to OpenInference span kinds (LLM, TOOL, AGENT, CHAIN)
- Mapping Strands attributes to OpenInference attributes
- Creating a hierarchical graph structure for visualization
- Preserving important metadata like token usage and model information
Agent Implementation
Now that you have tracing setup, all Strands Agent requests will be streamed to Arize AX for observability and evaluation. Example belowConfigure AgentCore Runtime deployment
Deploy to AgentCore Runtime
Invoking AgentCore Runtime
Troubleshooting
Overriding of current TracerProvider is not allowed
Cause: A TracerProvider was registered before Arize AX. In AgentCore, this usually happens when the native AgentCore/ADOT tracer initializes first. Fix:- Explicitly set the Arize provider as the global tracer provider with
trace.set_tracer_provider(provider). - Disable the AgentCore OTEL integration in runtime configuration with
disable_otel=True. - Set
DISABLE_ADOT_OBSERVABILITY=truein your runtime environment variables. AWS recommends this when using other observability platforms (see AWS AgentCore observability configuration).
Failed to export traces to [YOUR_ARIZE_ENDPOINT_OTLP] (StatusCode.PERMISSION_DENIED)
Cause: The OTLP endpoint or headers are missing or not being picked up. AgentCore’s tracer may ignoreOTEL_EXPORTER_OTLP_* in this runtime.
Fix:
- Confirm
OTEL_EXPORTER_OTLP_ENDPOINTis set to[YOUR_ARIZE_ENDPOINT_OTLP]. - Confirm
OTEL_EXPORTER_OTLP_HEADERSincludes your Arizespace_idandapi_key. - Ensure the Arize provider is set globally with
trace.set_tracer_provider(provider)so the OTEL exporter reads those environment variables.
Resources
- Bedrock AgentCore Documentation
- Arize + Bedrock Agent Core Tutorial - Complete example using Strands Agent on AgentCore with Arize AX tracing