Commit 0cf365f
committed
fix: use aws-opentelemetry-distro and add input/output logging for LangGraph agent
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 #5511 parent 30e6a74 commit 0cf365f
3 files changed
Lines changed: 10 additions & 6 deletions
File tree
- src/assets
- __tests__/__snapshots__
- python/langchain_langgraph/base
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2027 | 2027 | | |
2028 | 2028 | | |
2029 | 2029 | | |
| 2030 | + | |
2030 | 2031 | | |
2031 | 2032 | | |
2032 | 2033 | | |
2033 | 2034 | | |
2034 | 2035 | | |
2035 | | - | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
2036 | 2039 | | |
2037 | 2040 | | |
2038 | 2041 | | |
| |||
2261 | 2264 | | |
2262 | 2265 | | |
2263 | 2266 | | |
2264 | | - | |
2265 | | - | |
| 2267 | + | |
2266 | 2268 | | |
2267 | 2269 | | |
2268 | 2270 | | |
| |||
| 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 | | |
| |||
| 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