Repository navigation
Commit 364aca5
fix(aws-lambda): Don't link producers in the continued trace
The span links spec says not to add a message_origin link when the
consumer continues the producer's trace. Build the links after
continue_trace and skip any whose trace_id matches the invocation's.
Also test a sentry-trace without a sampling flag, which links without
sampled.
Co-Authored-By: Ivana Kellyer <131587164+sentrivana@users.noreply.github.com>1 parent 6bf1e29 commit 364aca5
2 files changed
Lines changed: 35 additions & 6 deletions
File tree
- sentry_sdk/integrations/aws_lambda
- tests/integrations/aws_lambda
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
| |||
267 | 265 | | |
268 | 266 | | |
269 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
270 | 279 | | |
271 | 280 | | |
272 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
| 921 | + | |
| 922 | + | |
921 | 923 | | |
922 | 924 | | |
923 | 925 | | |
| |||
935 | 937 | | |
936 | 938 | | |
937 | 939 | | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
938 | 945 | | |
939 | 946 | | |
940 | 947 | | |
| |||
1020 | 1027 | | |
1021 | 1028 | | |
1022 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1023 | 1035 | | |
1024 | 1036 | | |
1025 | 1037 | | |
| |||
1029 | 1041 | | |
1030 | 1042 | | |
1031 | 1043 | | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1032 | 1052 | | |
1033 | 1053 | | |
1034 | 1054 | | |
| |||
0 commit comments