Commit 3f3148e
committed
fix(native-spans): keep OTLP span events on the native event slot
The `meta.events` JSON fallback exists for agents that cannot read the
native `span_events` field, gated on `DD_TRACE_NATIVE_SPAN_EVENTS`. That
gate is about the agent protocol, so with `OTEL_TRACES_EXPORTER=otlp` and
the default flag value every event reached the collector as a JSON string
attribute instead of a structured OTLP event, breaking consumers of
exception data. The deleted OTLP transformer converted events regardless
of the flag.
Take the native path whenever the destination is OTLP.
Reported by Codex review as P2.1 parent 78201a7 commit 3f3148e
2 files changed
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
562 | 568 | | |
563 | 569 | | |
564 | 570 | | |
565 | 571 | | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
| 572 | + | |
| 573 | + | |
571 | 574 | | |
572 | 575 | | |
573 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
681 | 696 | | |
682 | 697 | | |
683 | 698 | | |
| |||
0 commit comments