Commit f5e40b6
authored
enhancement(components): add otlp decoder (#1080)
## Summary
<!-- Please provide a brief summary about what this PR does.
This should help the reviewers give feedback faster and with higher
quality. -->
This PR creates the OTLP Decoder.
The topology is updated using the new named outputs for the `Relay` such
that metrics and logs will be proxied while traces will go to the OTLP
Decoder.
When `data_plane.otlp.proxy.traces.enabled` is true, traces will be
proxied to the trace agent on port 5003
```
data_plane:
enabled: true
otlp:
enabled: true
proxy:
enabled: true
receiver:
protocols:
grpc:
endpoint: 127.0.0.1:4319
http:
endpoint: 127.0.0.1:4320
traces:
enabled: false
metrics:
enabled: true
logs:
enabled: true
```
## Change Type
- [ ] Bug fix
- [x] New feature
- [ ] Non-functional (chore, refactoring, docs)
- [ ] Performance
## How did you test this PR?
<!-- Please how you tested these changes here -->
Run ADP and enable OTLP + proxy:
```
data_plane:
enabled: true
otlp:
enabled: true
proxy:
enabled: true
receiver:
protocols:
grpc:
endpoint: 127.0.0.1:4319
http:
endpoint: 127.0.0.1:4320
traces:
enabled: false
metrics:
enabled: true
logs:
enabled: true
```
Send OTLP traces,metrics,logs and see that they show up in datadog.
## References
<!-- Please list any issues closed by this PR. -->
<!--
- Closes: <issue link>
-->
<!-- Any other issues or PRs relevant to this PR? Feel free to list them
here. -->1 parent 43d78f4 commit f5e40b6
13 files changed
+781
-186
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
323 | | - | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
| 409 | + | |
| 410 | + | |
418 | 411 | | |
419 | 412 | | |
420 | 413 | | |
| 414 | + | |
| 415 | + | |
421 | 416 | | |
422 | | - | |
423 | | - | |
| 417 | + | |
| 418 | + | |
424 | 419 | | |
425 | 420 | | |
426 | 421 | | |
427 | 422 | | |
428 | 423 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
433 | 436 | | |
434 | 437 | | |
435 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
136 | | - | |
| 136 | + | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
191 | 196 | | |
| 197 | + | |
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| |||
198 | 204 | | |
199 | 205 | | |
200 | 206 | | |
201 | | - | |
| 207 | + | |
202 | 208 | | |
203 | | - | |
204 | | - | |
205 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
206 | 213 | | |
207 | 214 | | |
208 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
209 | 231 | | |
210 | 232 | | |
211 | 233 | | |
212 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
213 | 266 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
218 | 273 | | |
219 | 274 | | |
220 | 275 | | |
| |||
223 | 278 | | |
224 | 279 | | |
225 | 280 | | |
226 | | - | |
227 | | - | |
228 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
229 | 306 | | |
230 | 307 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
203 | 214 | | |
204 | 215 | | |
205 | 216 | | |
| |||
243 | 254 | | |
244 | 255 | | |
245 | 256 | | |
| 257 | + | |
246 | 258 | | |
247 | 259 | | |
248 | 260 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments