Commit b44c921
authored
fix(adk): set OTLP exporter timeout in milliseconds (#1639)
OTEL specified that timeout env vars should be in **milliseconds**:
https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#timeout-configuration
Python SDK's exporter currently expects it in seconds, so this adds a
utility function to parse the env var into seconds. Go is not affected
because OTEL Go SDK will properly take up the new value in milliseconds
properly.
Without changing this to milliseconds, Go ADK was having a timeout
configured as 15ms which results in intermittent error like `traces
export: exporter export timeout: rpc error: code = DeadlineExceeded desc
= context deadline exceeded`
---------
Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>1 parent e17cd6e commit b44c921
3 files changed
Lines changed: 67 additions & 6 deletions
File tree
- helm/kagent
- python/packages/kagent-core
- src/kagent/core/tracing
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
Lines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
21 | 54 | | |
22 | 55 | | |
23 | 56 | | |
| |||
69 | 102 | | |
70 | 103 | | |
71 | 104 | | |
| 105 | + | |
72 | 106 | | |
73 | 107 | | |
74 | | - | |
| 108 | + | |
75 | 109 | | |
76 | | - | |
| 110 | + | |
77 | 111 | | |
78 | 112 | | |
79 | 113 | | |
| |||
107 | 141 | | |
108 | 142 | | |
109 | 143 | | |
| 144 | + | |
110 | 145 | | |
111 | 146 | | |
112 | 147 | | |
113 | 148 | | |
114 | | - | |
| 149 | + | |
115 | 150 | | |
116 | | - | |
| 151 | + | |
117 | 152 | | |
118 | 153 | | |
119 | 154 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
0 commit comments