Commit f24609f
fix: use aws-opentelemetry-distro and add input/output logging for LangGraph agent (#552)
The LangGraph template was using the generic opentelemetry-distro which
doesn't integrate properly with AWS X-Ray and CloudWatch. This resulted
in only 1 span and no input/output logs in the runtime log group.
Switch to aws-opentelemetry-distro (matching the Strands template) to
enable proper AWS-native telemetry with botocore instrumentation that
captures Bedrock model calls, tool usage, and trace context. Also add
input/output logging to the agent entrypoint.
Fixes #551
Co-authored-by: Jesse Turner <ajesstur@amazon.com>1 parent 49e3d7c commit f24609f
3 files changed
Lines changed: 10 additions & 6 deletions
File tree
- src/assets
- __tests__/__snapshots__
- python/http/langchain_langgraph/base
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2904 | 2904 | | |
2905 | 2905 | | |
2906 | 2906 | | |
| 2907 | + | |
2907 | 2908 | | |
2908 | 2909 | | |
2909 | 2910 | | |
2910 | 2911 | | |
2911 | 2912 | | |
2912 | | - | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
2913 | 2916 | | |
2914 | 2917 | | |
2915 | 2918 | | |
| |||
3147 | 3150 | | |
3148 | 3151 | | |
3149 | 3152 | | |
3150 | | - | |
3151 | | - | |
| 3153 | + | |
3152 | 3154 | | |
3153 | 3155 | | |
3154 | 3156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
0 commit comments