Commit 02b5891
authored
feat(otlp): support OTLP trace receiver (#654)
# What?
Creates an OTLP receiver for traces so customers using OTEL can see
traces in Datadog when using this extension.
<img width="1339" alt="Screenshot 2025-04-23 at 3 10 55 PM"
src="https://github.com/user-attachments/assets/29ca68c8-7ce4-4f43-80d1-04b5060b321f"
/>
# Motivation
Support OTLP and
[SVLS-6563](https://datadoghq.atlassian.net/browse/SVLS-6563)
# How
- Copied most of the `transform.rs` code from
https://github.com/DataDog/datadog-agent/blob/main/pkg/trace/transform/transform.go
but did not include any v1 references.
# Notes
- Support is limited to traces and HTTP
- Eventually will use some methods from
https://github.com/DataDog/dd-trace-rs/blob/main/datadog-opentelemetry/src/span_conversion.rs
if possible, as types might differ.
[SVLS-6563]:
https://datadoghq.atlassian.net/browse/SVLS-6563?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ1 parent 3b10c17 commit 02b5891
File tree
10 files changed
+2889
-209
lines changed- bottlecap
- src
- bin/bottlecap
- otlp
- traces
10 files changed
+2889
-209
lines changedSome 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 | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| 335 | + | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
351 | 353 | | |
352 | 354 | | |
353 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
354 | 363 | | |
355 | 364 | | |
356 | 365 | | |
| |||
687 | 696 | | |
688 | 697 | | |
689 | 698 | | |
| 699 | + | |
690 | 700 | | |
691 | 701 | | |
692 | 702 | | |
| |||
704 | 714 | | |
705 | 715 | | |
706 | 716 | | |
707 | | - | |
708 | 717 | | |
709 | 718 | | |
710 | 719 | | |
| |||
793 | 802 | | |
794 | 803 | | |
795 | 804 | | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments