Commit 4600dde
feat(logs): adopt datadog-log-agent shared crate
Replace bespoke log aggregator, flusher, and intake types with the
shared datadog-log-agent crate from serverless-components.
Key changes:
- Delete bottlecap/src/logs/{aggregator,aggregator_service,constants,
flusher}.rs — superseded by the crate
- LogEntry is now the flat datadog_log_agent::LogEntry; lambda context
(arn, request_id) moves into attributes["lambda"] instead of the old
nested IntakeLog.message.lambda struct
- LogFlusher (with internal retry) replaces LogsFlusher; flush handle
type simplifies from Vec<RequestBuilder> to bool
- start_logs_agent made async to resolve the API key upfront and build
LogFlusherConfig explicitly
- Integration test updated to match the new flat JSON wire format
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent be113c9 commit 4600dde
14 files changed
Lines changed: 442 additions & 1033 deletions
File tree
- bottlecap
- src
- bin/bottlecap
- flushing
- logs
- lambda
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 48 | + | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| |||
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
309 | | - | |
| 307 | + | |
| 308 | + | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
| |||
1027 | 1026 | | |
1028 | 1027 | | |
1029 | 1028 | | |
1030 | | - | |
| 1029 | + | |
1031 | 1030 | | |
1032 | 1031 | | |
1033 | 1032 | | |
| |||
1036 | 1035 | | |
1037 | 1036 | | |
1038 | 1037 | | |
1039 | | - | |
| 1038 | + | |
1040 | 1039 | | |
1041 | 1040 | | |
1042 | 1041 | | |
1043 | | - | |
| 1042 | + | |
1044 | 1043 | | |
1045 | 1044 | | |
1046 | 1045 | | |
| |||
1062 | 1061 | | |
1063 | 1062 | | |
1064 | 1063 | | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1071 | 1095 | | |
1072 | 1096 | | |
1073 | 1097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | | - | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
216 | 202 | | |
217 | 203 | | |
218 | 204 | | |
219 | | - | |
| 205 | + | |
| 206 | + | |
220 | 207 | | |
221 | 208 | | |
222 | 209 | | |
| |||
325 | 312 | | |
326 | 313 | | |
327 | 314 | | |
328 | | - | |
| 315 | + | |
329 | 316 | | |
330 | 317 | | |
331 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments