Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Created June 11, 2025 15:22
Show Gist options
  • Save pcolazurdo/b48a9b42ff36e8d02d81894be777e390 to your computer and use it in GitHub Desktop.
Save pcolazurdo/b48a9b42ff36e8d02d81894be777e390 to your computer and use it in GitHub Desktop.
AWS Strands Agent - tribal knowledge

Strands - Some useful knowledge

Running Jaegger for Tracing:

# Pull and run Jaeger all-in-one container 

dev-portal-UWCK_VoB  | ekstraining ⎈ | pabcol@bcd074afaaa8
docker run -d --name jaeger \
  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  -p 14250:14250 \
  -p 14268:14268 \
  -p 14269:14269 \
  -p 9411:9411 \
  jaegertracing/all-in-one:latest

Accessing Jaeger

Point your browser to: http://localhost:16686/

Running Strands builder with Tracing

# If you want to export to console
# export STRANDS_OTEL_ENABLE_CONSOLE_EXPORT=true
# if you want to export to the local Jaeger or other OTEL agent.
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318

Running Strands builder with a custom model

# replace with the proper region, account-id and inference-profile-id or model-id
strands --model-provider bedrock \
  --model-config '{"model_id": "arn:aws:bedrock:us-west-2:123456789012:inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment