git.colasdn.top/newrelic/go-agent@v3.26.0+incompatible/internal/crossagent/cross_agent_tests/distributed_tracing/distributed_tracing.json (about) 1 [ 2 { 3 "test_name": "accept_payload", 4 "trusted_account_key": "33", 5 "account_id": "33", 6 "web_transaction": true, 7 "raises_exception": false, 8 "force_sampled_true": false, 9 "span_events_enabled": true, 10 "major_version": 0, 11 "minor_version": 1, 12 "transport_type": "HTTP", 13 "inbound_payloads": [ 14 { 15 "v": [0, 1], 16 "d": { 17 "ac": "33", 18 "ap": "2827902", 19 "id": "7d3efb1b173fecfa", 20 "tx": "e8b91a159289ff74", 21 "pr": 1.234567, 22 "sa": true, 23 "ti": 1518469636035, 24 "tr": "d6b4ba0c3a712ca", 25 "ty": "App" 26 } 27 } 28 ], 29 "intrinsics": { 30 "target_events": ["Transaction", "Span"], 31 "common":{ 32 "exact": { 33 "traceId": "d6b4ba0c3a712ca", 34 "priority": 1.234567, 35 "sampled": true 36 }, 37 "expected": ["guid"], 38 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 39 }, 40 "Transaction": { 41 "exact": { 42 "parent.type": "App", 43 "parent.app": "2827902", 44 "parent.account": "33", 45 "parent.transportType": "HTTP", 46 "parentId": "e8b91a159289ff74", 47 "parentSpanId": "7d3efb1b173fecfa" 48 }, 49 "expected": ["parent.transportDuration"] 50 }, 51 "Span": { 52 "exact": { 53 "parentId": "7d3efb1b173fecfa" 54 }, 55 "expected": ["transactionId"], 56 "unexpected": ["parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType"] 57 } 58 }, 59 "expected_metrics": [ 60 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 61 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 62 ["TransportDuration/App/33/2827902/HTTP/all", 1], 63 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 64 ["Supportability/DistributedTrace/AcceptPayload/Success", 1] 65 ] 66 }, 67 { 68 "test_name": "multiple_accept_calls", 69 "trusted_account_key": "33", 70 "account_id": "33", 71 "web_transaction": true, 72 "raises_exception": false, 73 "force_sampled_true": false, 74 "span_events_enabled": true, 75 "major_version": 0, 76 "minor_version": 1, 77 "transport_type": "HTTP", 78 "inbound_payloads": [ 79 { 80 "v": [0, 1], 81 "d": { 82 "ac": "33", 83 "ap": "2827902", 84 "tx": "e8b91a159289ff74", 85 "pr": 0.123456, 86 "sa": false, 87 "ti": 1518469636035, 88 "tr": "d6b4ba0c3a712ca", 89 "ty": "App" 90 } 91 }, 92 { 93 "v": [0, 1], 94 "d": { 95 "ac": "33", 96 "ap": "2097282", 97 "tx": "23cb0b7a48407caf", 98 "id": "b4a07f08064ee8f9", 99 "pr": 1.234567, 100 "sa": true, 101 "ti": 1530549828110, 102 "tr": "c3e4882169ac3509", 103 "ty": "App" 104 } 105 } 106 ], 107 "intrinsics": { 108 "target_events": ["Transaction"], 109 "common":{ 110 "exact": { 111 "parent.type": "App", 112 "parent.app": "2827902", 113 "parent.account": "33", 114 "parent.transportType": "HTTP", 115 "traceId": "d6b4ba0c3a712ca", 116 "priority": 0.123456, 117 "sampled": false 118 }, 119 "expected": ["parent.transportDuration", "guid"], 120 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 121 }, 122 "Transaction": { 123 "exact": { 124 "parentId": "e8b91a159289ff74" 125 } 126 } 127 }, 128 "expected_metrics": [ 129 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 130 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 131 ["TransportDuration/App/33/2827902/HTTP/all", 1], 132 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 133 ["Supportability/DistributedTrace/AcceptPayload/Success", 1], 134 ["Supportability/DistributedTrace/AcceptPayload/Ignored/Multiple", 1] 135 ] 136 }, 137 { 138 "test_name": "payload_with_sampled_false", 139 "trusted_account_key": "33", 140 "account_id": "33", 141 "web_transaction": true, 142 "raises_exception": false, 143 "force_sampled_true": false, 144 "span_events_enabled": true, 145 "major_version": 0, 146 "minor_version": 1, 147 "transport_type": "HTTP", 148 "inbound_payloads": [ 149 { 150 "v": [0, 1], 151 "d": { 152 "ac": "33", 153 "ap": "2827902", 154 "tx": "e8b91a159289ff74", 155 "pr": 0.123456, 156 "sa": false, 157 "ti": 1518469636035, 158 "tr": "d6b4ba0c3a712ca", 159 "ty": "App" 160 } 161 } 162 ], 163 "intrinsics": { 164 "target_events": ["Transaction"], 165 "common":{ 166 "exact": { 167 "parent.type": "App", 168 "parent.app": "2827902", 169 "parent.account": "33", 170 "parent.transportType": "HTTP", 171 "traceId": "d6b4ba0c3a712ca", 172 "priority": 0.123456, 173 "sampled": false 174 }, 175 "expected": ["parent.transportDuration", "guid"], 176 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 177 }, 178 "Transaction": { 179 "exact": { 180 "parentId": "e8b91a159289ff74" 181 } 182 } 183 }, 184 "expected_metrics": [ 185 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 186 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 187 ["TransportDuration/App/33/2827902/HTTP/all", 1], 188 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 189 ["Supportability/DistributedTrace/AcceptPayload/Success", 1] 190 ] 191 }, 192 { 193 "test_name": "spans_disabled_in_parent", 194 "trusted_account_key": "33", 195 "account_id": "33", 196 "web_transaction": true, 197 "raises_exception": false, 198 "force_sampled_true": false, 199 "span_events_enabled": true, 200 "major_version": 0, 201 "minor_version": 1, 202 "transport_type": "HTTP", 203 "inbound_payloads": [ 204 { 205 "v": [0, 1], 206 "d": { 207 "ac": "33", 208 "ap": "2827902", 209 "tx": "e8b91a159289ff74", 210 "pr": 1.234567, 211 "sa": true, 212 "ti": 1518469636035, 213 "tr": "d6b4ba0c3a712ca", 214 "ty": "App" 215 } 216 } 217 ], 218 "intrinsics": { 219 "target_events": ["Transaction", "Span"], 220 "common":{ 221 "exact": { 222 "traceId": "d6b4ba0c3a712ca", 223 "priority": 1.234567, 224 "sampled": true 225 }, 226 "expected": ["guid"], 227 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 228 }, 229 "Transaction": { 230 "exact": { 231 "parent.type": "App", 232 "parent.app": "2827902", 233 "parent.account": "33", 234 "parent.transportType": "HTTP", 235 "parentId": "e8b91a159289ff74" 236 }, 237 "expected": ["parent.transportDuration"], 238 "unexpected": ["parentSpanId"] 239 }, 240 "Span": { 241 "expected": ["transactionId"], 242 "unexpected": ["parentId", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType"] 243 244 } 245 }, 246 "expected_metrics": [ 247 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 248 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 249 ["TransportDuration/App/33/2827902/HTTP/all", 1], 250 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 251 ["Supportability/DistributedTrace/AcceptPayload/Success", 1] 252 ] 253 }, 254 { 255 "test_name": "spans_disabled_in_child", 256 "trusted_account_key": "33", 257 "account_id": "33", 258 "web_transaction": true, 259 "raises_exception": false, 260 "force_sampled_true": false, 261 "span_events_enabled": false, 262 "major_version": 0, 263 "minor_version": 1, 264 "transport_type": "HTTP", 265 "inbound_payloads": [ 266 { 267 "v": [0, 1], 268 "d": { 269 "ac": "33", 270 "ap": "2827902", 271 "id": "7d3efb1b173fecfa", 272 "tx": "e8b91a159289ff74", 273 "pr": 1.234567, 274 "sa": true, 275 "ti": 1518469636035, 276 "tr": "d6b4ba0c3a712ca", 277 "ty": "App" 278 } 279 } 280 ], 281 "outbound_payloads": [ 282 { 283 "exact": { 284 "v": [0, 1], 285 "d.ac": "33", 286 "d.pr": 1.234567, 287 "d.sa": true, 288 "d.tr": "d6b4ba0c3a712ca", 289 "d.ty": "App" 290 }, 291 "expected": ["d.ap", "d.tx", "d.ti"], 292 "unexpected": ["d.tk", "d.id"] 293 } 294 ], 295 "intrinsics": { 296 "target_events": ["Transaction"], 297 "common":{ 298 "exact": { 299 "parent.type": "App", 300 "parent.app": "2827902", 301 "parent.account": "33", 302 "parent.transportType": "HTTP", 303 "traceId": "d6b4ba0c3a712ca", 304 "priority": 1.234567, 305 "sampled": true 306 }, 307 "expected": ["parent.transportDuration", "guid"], 308 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 309 }, 310 "Transaction": { 311 "exact": { 312 "parentId": "e8b91a159289ff74", 313 "parentSpanId": "7d3efb1b173fecfa" 314 } 315 } 316 }, 317 "expected_metrics": [ 318 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 319 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 320 ["TransportDuration/App/33/2827902/HTTP/all", 1], 321 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1] 322 ] 323 }, 324 { 325 "test_name": "exception", 326 "trusted_account_key": "33", 327 "account_id": "33", 328 "web_transaction": true, 329 "raises_exception": true, 330 "force_sampled_true": false, 331 "span_events_enabled": true, 332 "major_version": 0, 333 "minor_version": 1, 334 "transport_type": "HTTP", 335 "inbound_payloads": [ 336 { 337 "v": [0, 1], 338 "d": { 339 "ac": "33", 340 "ap": "2827902", 341 "id": "7d3efb1b173fecfa", 342 "tx": "e8b91a159289ff74", 343 "pr": 1.001, 344 "sa": true, 345 "ti": 1518469636035, 346 "tr": "d6b4ba0c3a712ca", 347 "ty": "App" 348 } 349 } 350 ], 351 "intrinsics": { 352 "target_events": ["Transaction", "TransactionError", "Span"], 353 "common":{ 354 "exact": { 355 "traceId": "d6b4ba0c3a712ca", 356 "priority": 1.001, 357 "sampled": true 358 }, 359 "expected": ["guid"], 360 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 361 }, 362 "Transaction": { 363 "exact": { 364 "error": true, 365 "parent.type": "App", 366 "parent.app": "2827902", 367 "parent.account": "33", 368 "parent.transportType": "HTTP", 369 "parentId": "e8b91a159289ff74", 370 "parentSpanId": "7d3efb1b173fecfa" 371 }, 372 "expected": ["parent.transportDuration"] 373 }, 374 "Span": { 375 "exact": { 376 "parentId": "7d3efb1b173fecfa" 377 }, 378 "expected": ["transactionId"], 379 "unexpected": ["parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType"] 380 } 381 }, 382 "expected_metrics": [ 383 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 384 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 385 ["ErrorsByCaller/App/33/2827902/HTTP/all", 1], 386 ["ErrorsByCaller/App/33/2827902/HTTP/allWeb", 1], 387 ["TransportDuration/App/33/2827902/HTTP/all", 1], 388 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 389 ["Supportability/DistributedTrace/AcceptPayload/Success", 1] 390 ] 391 }, 392 { 393 "test_name": "background_transaction", 394 "trusted_account_key": "33", 395 "account_id": "33", 396 "web_transaction": false, 397 "raises_exception": false, 398 "force_sampled_true": false, 399 "span_events_enabled": true, 400 "major_version": 0, 401 "minor_version": 1, 402 "transport_type": "HTTP", 403 "inbound_payloads": [ 404 { 405 "v": [0, 1], 406 "d": { 407 "ac": "33", 408 "ap": "2827902", 409 "id": "7d3efb1b173fecfa", 410 "tx": "e8b91a159289ff74", 411 "pr": 0.234567, 412 "sa": false, 413 "ti": 1518469636035, 414 "tr": "d6b4ba0c3a712ca", 415 "ty": "App" 416 } 417 } 418 ], 419 "intrinsics": { 420 "target_events": ["Transaction"], 421 "common":{ 422 "exact": { 423 "parent.type": "App", 424 "parent.app": "2827902", 425 "parent.account": "33", 426 "parent.transportType": "HTTP", 427 "traceId": "d6b4ba0c3a712ca", 428 "priority": 0.234567, 429 "sampled": false 430 }, 431 "expected": ["parent.transportDuration", "guid"], 432 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 433 }, 434 "Transaction": { 435 "exact": { 436 "parentId": "e8b91a159289ff74", 437 "parentSpanId": "7d3efb1b173fecfa" 438 } 439 } 440 }, 441 "expected_metrics": [ 442 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 443 ["DurationByCaller/App/33/2827902/HTTP/allOther", 1], 444 ["TransportDuration/App/33/2827902/HTTP/all", 1], 445 ["TransportDuration/App/33/2827902/HTTP/allOther", 1], 446 ["Supportability/DistributedTrace/AcceptPayload/Success", 1] 447 ] 448 }, 449 { 450 "test_name": "payload_from_mobile_caller", 451 "comment": "the transaction must be marked sampled=true so a Span event is created", 452 "trusted_account_key": "33", 453 "account_id": "33", 454 "web_transaction": true, 455 "raises_exception": false, 456 "force_sampled_true": true, 457 "span_events_enabled": true, 458 "major_version": 0, 459 "minor_version": 1, 460 "transport_type": "HTTP", 461 "inbound_payloads": [ 462 { 463 "v": [0, 1], 464 "d": { 465 "ac": "33", 466 "ap": "2827902", 467 "id": "7d3efb1b173fecfa", 468 "ti": 1518469636035, 469 "tr": "d6b4ba0c3a712ca", 470 "ty": "Mobile" 471 } 472 } 473 ], 474 "intrinsics": { 475 "target_events": ["Transaction", "Span"], 476 "common":{ 477 "exact": { 478 "traceId": "d6b4ba0c3a712ca", 479 "sampled": true 480 }, 481 "expected": ["guid", "priority"], 482 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 483 }, 484 "Transaction": { 485 "exact": { 486 "parent.type": "Mobile", 487 "parent.app": "2827902", 488 "parent.account": "33", 489 "parent.transportType": "HTTP", 490 "parentSpanId": "7d3efb1b173fecfa" 491 }, 492 "expected": ["parent.transportDuration"], 493 "unexpected": ["parentId"] 494 }, 495 "Span": { 496 "exact": { 497 "parentId": "7d3efb1b173fecfa" 498 }, 499 "expected": ["transactionId"], 500 "unexpected": ["parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType"] 501 } 502 }, 503 "expected_metrics": [ 504 ["DurationByCaller/Mobile/33/2827902/HTTP/all", 1], 505 ["DurationByCaller/Mobile/33/2827902/HTTP/allWeb", 1], 506 ["TransportDuration/Mobile/33/2827902/HTTP/all", 1], 507 ["TransportDuration/Mobile/33/2827902/HTTP/allWeb", 1] 508 ] 509 }, 510 { 511 "test_name": "lowercase_known_transport_is_unknown", 512 "comment": "beware the casing!", 513 "trusted_account_key": "33", 514 "account_id": "33", 515 "web_transaction": true, 516 "raises_exception": false, 517 "force_sampled_true": false, 518 "span_events_enabled": true, 519 "major_version": 0, 520 "minor_version": 1, 521 "transport_type": "kafka", 522 "inbound_payloads": [ 523 { 524 "v": [0, 1], 525 "d": { 526 "ac": "33", 527 "ap": "2827902", 528 "tx": "e8b91a159289ff74", 529 "pr": 0.123456, 530 "sa": false, 531 "ti": 1518469636035, 532 "tr": "d6b4ba0c3a712ca", 533 "ty": "App" 534 } 535 } 536 ], 537 "intrinsics": { 538 "target_events": ["Transaction"], 539 "common":{ 540 "exact": { 541 "parent.type": "App", 542 "parent.app": "2827902", 543 "parent.account": "33", 544 "parent.transportType": "Unknown", 545 "traceId": "d6b4ba0c3a712ca", 546 "priority": 0.123456, 547 "sampled": false 548 }, 549 "expected": ["parent.transportDuration", "guid"], 550 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 551 }, 552 "Transaction": { 553 "exact": { 554 "parentId": "e8b91a159289ff74" 555 } 556 } 557 }, 558 "expected_metrics": [ 559 ["DurationByCaller/App/33/2827902/Unknown/all", 1], 560 ["DurationByCaller/App/33/2827902/Unknown/allWeb", 1], 561 ["TransportDuration/App/33/2827902/Unknown/all", 1], 562 ["TransportDuration/App/33/2827902/Unknown/allWeb", 1], 563 ["Supportability/DistributedTrace/AcceptPayload/Success", 1] 564 ] 565 }, 566 { 567 "test_name": "create_payload", 568 "trusted_account_key": "33", 569 "account_id": "33", 570 "web_transaction": true, 571 "raises_exception": false, 572 "force_sampled_true": false, 573 "span_events_enabled": true, 574 "major_version": 0, 575 "minor_version": 1, 576 "transport_type": "HTTP", 577 "inbound_payloads": [ 578 { 579 "v": [0, 1], 580 "d": { 581 "ac": "33", 582 "ap": "2827902", 583 "id": "7d3efb1b173fecfa", 584 "tx": "e8b91a159289ff74", 585 "pr": 1.234567, 586 "sa": true, 587 "ti": 1518469636035, 588 "tr": "d6b4ba0c3a712ca", 589 "ty": "App" 590 } 591 } 592 ], 593 "outbound_payloads": [ 594 { 595 "exact": { 596 "v": [0, 1], 597 "d.ac": "33", 598 "d.pr": 1.234567, 599 "d.sa": true, 600 "d.tr": "d6b4ba0c3a712ca", 601 "d.ty": "App" 602 }, 603 "expected": ["d.ap", "d.tx", "d.id", "d.ti"], 604 "unexpected": ["d.tk"] 605 } 606 ], 607 "intrinsics": { 608 "target_events": ["Transaction", "Span"], 609 "common":{ 610 "exact": { 611 "traceId": "d6b4ba0c3a712ca", 612 "priority": 1.234567, 613 "sampled": true 614 }, 615 "expected": ["guid"], 616 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 617 }, 618 "Transaction": { 619 "exact": { 620 "parent.type": "App", 621 "parent.app": "2827902", 622 "parent.account": "33", 623 "parent.transportType": "HTTP", 624 "parentId": "e8b91a159289ff74", 625 "parentSpanId": "7d3efb1b173fecfa" 626 }, 627 "expected": ["parent.transportDuration"] 628 }, 629 "Span": { 630 "exact": { 631 "parentId": "7d3efb1b173fecfa" 632 }, 633 "expected": ["transactionId"], 634 "unexpected": ["parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType"] 635 } 636 }, 637 "expected_metrics": [ 638 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 639 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 640 ["TransportDuration/App/33/2827902/HTTP/all", 1], 641 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 642 ["Supportability/DistributedTrace/AcceptPayload/Success", 1], 643 ["Supportability/DistributedTrace/CreatePayload/Success", 1] 644 ] 645 }, 646 { 647 "test_name": "multiple_create_calls", 648 "trusted_account_key": "33", 649 "account_id": "33", 650 "web_transaction": true, 651 "raises_exception": false, 652 "force_sampled_true": false, 653 "span_events_enabled": true, 654 "major_version": 0, 655 "minor_version": 1, 656 "transport_type": "HTTP", 657 "inbound_payloads": [ 658 { 659 "v": [0, 1], 660 "d": { 661 "ac": "33", 662 "ap": "2827902", 663 "id": "7d3efb1b173fecfa", 664 "tx": "e8b91a159289ff74", 665 "pr": 1.234567, 666 "sa": true, 667 "ti": 1518469636035, 668 "tr": "d6b4ba0c3a712ca", 669 "tk": "33", 670 "ty": "App" 671 } 672 } 673 ], 674 "outbound_payloads": [ 675 { 676 "exact": { 677 "v": [0, 1], 678 "d.ac": "33", 679 "d.pr": 1.234567, 680 "d.sa": true, 681 "d.tr": "d6b4ba0c3a712ca", 682 "d.ty": "App" 683 }, 684 "expected": ["d.ap", "d.tx", "d.id", "d.ti"], 685 "unexpected": ["d.tk"] 686 }, 687 { 688 "exact": { 689 "v": [0, 1], 690 "d.ac": "33", 691 "d.pr": 1.234567, 692 "d.sa": true, 693 "d.tr": "d6b4ba0c3a712ca", 694 "d.ty": "App" 695 }, 696 "expected": ["d.ap", "d.tx", "d.id", "d.ti"], 697 "unexpected": ["d.tk"] 698 } 699 ], 700 "intrinsics": { 701 "target_events": ["Transaction", "Span"], 702 "common":{ 703 "exact": { 704 "traceId": "d6b4ba0c3a712ca", 705 "priority": 1.234567, 706 "sampled": true 707 }, 708 "expected": ["guid"], 709 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 710 }, 711 "Transaction": { 712 "exact": { 713 "parent.type": "App", 714 "parent.app": "2827902", 715 "parent.account": "33", 716 "parent.transportType": "HTTP", 717 "parentId": "e8b91a159289ff74", 718 "parentSpanId": "7d3efb1b173fecfa" 719 }, 720 "expected": ["parent.transportDuration"] 721 }, 722 "Span": { 723 "exact": { 724 "parentId": "7d3efb1b173fecfa" 725 }, 726 "expected": ["transactionId"], 727 "unexpected": ["parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType"] 728 } 729 }, 730 "expected_metrics": [ 731 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 732 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 733 ["TransportDuration/App/33/2827902/HTTP/all", 1], 734 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 735 ["Supportability/DistributedTrace/AcceptPayload/Success", 1], 736 ["Supportability/DistributedTrace/CreatePayload/Success", 2] 737 ] 738 }, 739 { 740 "test_name": "payload_from_trusted_partnership_account", 741 "trusted_account_key": "44", 742 "account_id": "11", 743 "web_transaction": true, 744 "raises_exception": false, 745 "force_sampled_true": false, 746 "span_events_enabled": true, 747 "major_version": 0, 748 "minor_version": 1, 749 "transport_type": "HTTP", 750 "inbound_payloads": [ 751 { 752 "v": [0, 1], 753 "d": { 754 "ac": "33", 755 "ap": "2827902", 756 "tx": "e8b91a159289ff74", 757 "pr": 0.123456, 758 "sa": false, 759 "ti": 1518469636035, 760 "tr": "d6b4ba0c3a712ca", 761 "tk": "44", 762 "ty": "App" 763 } 764 } 765 ], 766 "outbound_payloads": [ 767 { 768 "exact": { 769 "v": [0, 1], 770 "d.ac": "11", 771 "d.pr": 0.123456, 772 "d.sa": false, 773 "d.tr": "d6b4ba0c3a712ca", 774 "d.tk": "44", 775 "d.ty": "App" 776 }, 777 "expected": ["d.ap", "d.tx", "d.ti"], 778 "unexpected": ["d.id"] 779 } 780 ], 781 "intrinsics": { 782 "target_events": ["Transaction"], 783 "common":{ 784 "exact": { 785 "parent.type": "App", 786 "parent.app": "2827902", 787 "parent.account": "33", 788 "parent.transportType": "HTTP", 789 "traceId": "d6b4ba0c3a712ca", 790 "priority": 0.123456, 791 "sampled": false 792 }, 793 "expected": ["parent.transportDuration", "guid"], 794 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 795 }, 796 "Transaction": { 797 "exact": { 798 "parentId": "e8b91a159289ff74" 799 } 800 } 801 }, 802 "expected_metrics": [ 803 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 804 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 805 ["TransportDuration/App/33/2827902/HTTP/all", 1], 806 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 807 ["Supportability/DistributedTrace/AcceptPayload/Success", 1], 808 ["Supportability/DistributedTrace/CreatePayload/Success", 1] 809 ] 810 }, 811 { 812 "test_name": "payload_has_larger_minor_version", 813 "trusted_account_key": "33", 814 "account_id": "33", 815 "web_transaction": true, 816 "raises_exception": false, 817 "force_sampled_true": false, 818 "span_events_enabled": true, 819 "major_version": 0, 820 "minor_version": 1, 821 "transport_type": "HTTP", 822 "inbound_payloads": [ 823 { 824 "v": [0, 2], 825 "d": { 826 "ac": "33", 827 "ap": "2827902", 828 "tx": "e8b91a159289ff74", 829 "pr": 0.123456, 830 "sa": false, 831 "ti": 1518469636035, 832 "tr": "d6b4ba0c3a712ca", 833 "ty": "App", 834 "xx": "this is an unknown field!" 835 } 836 } 837 ], 838 "intrinsics": { 839 "target_events": ["Transaction"], 840 "common":{ 841 "exact": { 842 "parent.type": "App", 843 "parent.app": "2827902", 844 "parent.account": "33", 845 "parent.transportType": "HTTP", 846 "traceId": "d6b4ba0c3a712ca", 847 "priority": 0.123456, 848 "sampled": false 849 }, 850 "expected": ["parent.transportDuration", "guid"], 851 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes"] 852 }, 853 "Transaction": { 854 "exact": { 855 "parentId": "e8b91a159289ff74" 856 } 857 } 858 }, 859 "expected_metrics": [ 860 ["DurationByCaller/App/33/2827902/HTTP/all", 1], 861 ["DurationByCaller/App/33/2827902/HTTP/allWeb", 1], 862 ["TransportDuration/App/33/2827902/HTTP/all", 1], 863 ["TransportDuration/App/33/2827902/HTTP/allWeb", 1], 864 ["Supportability/DistributedTrace/AcceptPayload/Success", 1] 865 ] 866 }, 867 { 868 "test_name": "payload_with_untrusted_key", 869 "trusted_account_key": "33", 870 "account_id": "33", 871 "web_transaction": true, 872 "raises_exception": false, 873 "force_sampled_true": false, 874 "span_events_enabled": true, 875 "major_version": 0, 876 "minor_version": 1, 877 "transport_type": "HTTP", 878 "inbound_payloads": [ 879 { 880 "v": [0, 1], 881 "d": { 882 "ac": "11", 883 "ap": "2827902", 884 "tx": "e8b91a159289ff74", 885 "pr": 0.123456, 886 "sa": false, 887 "ti": 1518469636035, 888 "tr": "d6b4ba0c3a712ca", 889 "tk": "44", 890 "ty": "App" 891 } 892 } 893 ], 894 "intrinsics": { 895 "target_events": ["Transaction"], 896 "common":{ 897 "expected": ["guid", "traceId", "priority", "sampled"], 898 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 899 } 900 }, 901 "expected_metrics": [ 902 ["Supportability/DistributedTrace/AcceptPayload/Ignored/UntrustedAccount", 1] 903 ] 904 }, 905 { 906 "test_name": "payload_from_untrusted_account", 907 "trusted_account_key": "33", 908 "account_id": "33", 909 "web_transaction": true, 910 "raises_exception": false, 911 "force_sampled_true": false, 912 "span_events_enabled": true, 913 "major_version": 0, 914 "minor_version": 1, 915 "transport_type": "HTTP", 916 "inbound_payloads": [ 917 { 918 "v": [0, 1], 919 "d": { 920 "ac": "44", 921 "ap": "2827902", 922 "tx": "e8b91a159289ff74", 923 "pr": 0.123456, 924 "sa": false, 925 "ti": 1518469636035, 926 "tr": "d6b4ba0c3a712ca", 927 "ty": "App" 928 } 929 } 930 ], 931 "intrinsics": { 932 "target_events": ["Transaction"], 933 "common":{ 934 "expected": ["guid", "traceId", "priority", "sampled"], 935 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 936 } 937 }, 938 "expected_metrics": [ 939 ["Supportability/DistributedTrace/AcceptPayload/Ignored/UntrustedAccount", 1] 940 ] 941 }, 942 { 943 "test_name": "payload_has_larger_major_version", 944 "trusted_account_key": "33", 945 "account_id": "33", 946 "web_transaction": true, 947 "raises_exception": false, 948 "force_sampled_true": false, 949 "span_events_enabled": true, 950 "major_version": 0, 951 "minor_version": 1, 952 "transport_type": "HTTP", 953 "inbound_payloads": [ 954 { 955 "v": [1, 0], 956 "d": { 957 "ac": "33", 958 "ap": "2827902", 959 "tx": "e8b91a159289ff74", 960 "pr": 1.234567, 961 "sa": true, 962 "ti": 1518469636035, 963 "tr": "d6b4ba0c3a712ca", 964 "ty": "App" 965 } 966 } 967 ], 968 "intrinsics": { 969 "target_events": ["Transaction"], 970 "common":{ 971 "expected": ["guid", "traceId", "priority", "sampled"], 972 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 973 } 974 }, 975 "expected_metrics": [ 976 ["Supportability/DistributedTrace/AcceptPayload/Ignored/MajorVersion", 1] 977 ] 978 }, 979 { 980 "test_name": "null_payload", 981 "trusted_account_key": "33", 982 "account_id": "33", 983 "web_transaction": true, 984 "raises_exception": false, 985 "force_sampled_true": false, 986 "span_events_enabled": true, 987 "major_version": 0, 988 "minor_version": 1, 989 "transport_type": "HTTP", 990 "inbound_payloads": null, 991 "intrinsics": { 992 "target_events": ["Transaction"], 993 "common":{ 994 "expected": ["guid", "traceId", "priority", "sampled"], 995 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 996 } 997 }, 998 "expected_metrics": [ 999 ["Supportability/DistributedTrace/AcceptPayload/Ignored/Null", 1] 1000 ] 1001 }, 1002 { 1003 "test_name": "payload_missing_version", 1004 "trusted_account_key": "33", 1005 "account_id": "33", 1006 "web_transaction": true, 1007 "raises_exception": false, 1008 "force_sampled_true": false, 1009 "span_events_enabled": true, 1010 "major_version": 0, 1011 "minor_version": 1, 1012 "transport_type": "HTTP", 1013 "inbound_payloads": [ 1014 { 1015 "d": { 1016 "ac": "33", 1017 "ap": "2827902", 1018 "tx": "e8b91a159289ff74", 1019 "pr": 1.234567, 1020 "sa": true, 1021 "ti": 1518469636035, 1022 "tr": "d6b4ba0c3a712ca", 1023 "ty": "App" 1024 } 1025 } 1026 ], 1027 "intrinsics": { 1028 "target_events": ["Transaction"], 1029 "common":{ 1030 "expected": ["guid", "traceId", "priority", "sampled"], 1031 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1032 } 1033 }, 1034 "expected_metrics": [ 1035 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1036 ] 1037 }, 1038 { 1039 "test_name": "payload_missing_data", 1040 "trusted_account_key": "33", 1041 "account_id": "33", 1042 "web_transaction": true, 1043 "raises_exception": false, 1044 "force_sampled_true": false, 1045 "span_events_enabled": true, 1046 "major_version": 0, 1047 "minor_version": 1, 1048 "transport_type": "HTTP", 1049 "inbound_payloads": [ 1050 { 1051 "v": [0, 1] 1052 } 1053 ], 1054 "intrinsics": { 1055 "target_events": ["Transaction"], 1056 "common":{ 1057 "expected": ["guid", "traceId", "priority", "sampled"], 1058 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1059 } 1060 }, 1061 "expected_metrics": [ 1062 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1063 ] 1064 }, 1065 { 1066 "test_name": "payload_missing_account", 1067 "trusted_account_key": "33", 1068 "account_id": "33", 1069 "web_transaction": true, 1070 "raises_exception": false, 1071 "force_sampled_true": false, 1072 "span_events_enabled": true, 1073 "major_version": 0, 1074 "minor_version": 1, 1075 "transport_type": "HTTP", 1076 "inbound_payloads": [ 1077 { 1078 "v": [0, 1], 1079 "d": { 1080 "ap": "2827902", 1081 "tx": "e8b91a159289ff74", 1082 "pr": 1.234567, 1083 "sa": true, 1084 "ti": 1518469636035, 1085 "tr": "d6b4ba0c3a712ca", 1086 "ty": "App" 1087 } 1088 } 1089 ], 1090 "intrinsics": { 1091 "target_events": ["Transaction"], 1092 "common":{ 1093 "expected": ["guid", "traceId", "priority", "sampled"], 1094 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1095 } 1096 }, 1097 "expected_metrics": [ 1098 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1099 ] 1100 }, 1101 { 1102 "test_name": "payload_missing_application", 1103 "trusted_account_key": "33", 1104 "account_id": "33", 1105 "web_transaction": true, 1106 "raises_exception": false, 1107 "force_sampled_true": false, 1108 "span_events_enabled": true, 1109 "major_version": 0, 1110 "minor_version": 1, 1111 "transport_type": "HTTP", 1112 "inbound_payloads": [ 1113 { 1114 "v": [0, 1], 1115 "d": { 1116 "ac": "33", 1117 "tx": "e8b91a159289ff74", 1118 "pr": 1.234567, 1119 "sa": true, 1120 "ti": 1518469636035, 1121 "tr": "d6b4ba0c3a712ca", 1122 "ty": "App" 1123 } 1124 } 1125 ], 1126 "intrinsics": { 1127 "target_events": ["Transaction"], 1128 "common":{ 1129 "expected": ["guid", "traceId", "priority", "sampled"], 1130 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1131 } 1132 }, 1133 "expected_metrics": [ 1134 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1135 ] 1136 }, 1137 { 1138 "test_name": "payload_missing_type", 1139 "trusted_account_key": "33", 1140 "account_id": "33", 1141 "web_transaction": true, 1142 "raises_exception": false, 1143 "force_sampled_true": false, 1144 "span_events_enabled": true, 1145 "major_version": 0, 1146 "minor_version": 1, 1147 "transport_type": "HTTP", 1148 "inbound_payloads": [ 1149 { 1150 "v": [0, 1], 1151 "d": { 1152 "ac": "33", 1153 "ap": "2827902", 1154 "tx": "e8b91a159289ff74", 1155 "pr": 1.234567, 1156 "sa": true, 1157 "ti": 1518469636035, 1158 "tr": "d6b4ba0c3a712ca" 1159 } 1160 } 1161 ], 1162 "intrinsics": { 1163 "target_events": ["Transaction"], 1164 "common":{ 1165 "expected": ["guid", "traceId", "priority", "sampled"], 1166 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1167 } 1168 }, 1169 "expected_metrics": [ 1170 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1171 ] 1172 }, 1173 { 1174 "test_name": "payload_missing_transactionId_or_guid", 1175 "trusted_account_key": "33", 1176 "account_id": "33", 1177 "web_transaction": true, 1178 "raises_exception": false, 1179 "force_sampled_true": false, 1180 "span_events_enabled": true, 1181 "major_version": 0, 1182 "minor_version": 1, 1183 "transport_type": "HTTP", 1184 "inbound_payloads": [ 1185 { 1186 "v": [0, 1], 1187 "d": { 1188 "ac": "33", 1189 "ap": "2827902", 1190 "pr": 1.234567, 1191 "sa": true, 1192 "ti": 1518469636035, 1193 "tr": "d6b4ba0c3a712ca", 1194 "ty": "App" 1195 } 1196 } 1197 ], 1198 "intrinsics": { 1199 "target_events": ["Transaction"], 1200 "common":{ 1201 "expected": ["guid", "traceId", "priority", "sampled"], 1202 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1203 } 1204 }, 1205 "expected_metrics": [ 1206 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1207 ] 1208 }, 1209 { 1210 "test_name": "payload_missing_traceId", 1211 "trusted_account_key": "33", 1212 "account_id": "33", 1213 "web_transaction": true, 1214 "raises_exception": false, 1215 "force_sampled_true": false, 1216 "span_events_enabled": true, 1217 "major_version": 0, 1218 "minor_version": 1, 1219 "transport_type": "HTTP", 1220 "inbound_payloads": [ 1221 { 1222 "v": [0, 1], 1223 "d": { 1224 "ac": "33", 1225 "ap": "2827902", 1226 "tx": "e8b91a159289ff74", 1227 "pr": 1.234567, 1228 "sa": true, 1229 "ti": 1518469636035, 1230 "ty": "App" 1231 } 1232 } 1233 ], 1234 "intrinsics": { 1235 "target_events": ["Transaction"], 1236 "common":{ 1237 "expected": ["guid", "traceId", "priority", "sampled"], 1238 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1239 } 1240 }, 1241 "expected_metrics": [ 1242 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1243 ] 1244 }, 1245 { 1246 "test_name": "payload_missing_timestamp", 1247 "trusted_account_key": "33", 1248 "account_id": "33", 1249 "web_transaction": true, 1250 "raises_exception": false, 1251 "force_sampled_true": false, 1252 "span_events_enabled": true, 1253 "major_version": 0, 1254 "minor_version": 1, 1255 "transport_type": "HTTP", 1256 "inbound_payloads": [ 1257 { 1258 "v": [0, 1], 1259 "d": { 1260 "ac": "33", 1261 "ap": "2827902", 1262 "tx": "e8b91a159289ff74", 1263 "pr": 1.234567, 1264 "sa": true, 1265 "tr": "d6b4ba0c3a712ca", 1266 "ty": "App" 1267 } 1268 } 1269 ], 1270 "intrinsics": { 1271 "target_events": ["Transaction"], 1272 "common":{ 1273 "expected": ["guid", "traceId", "priority", "sampled"], 1274 "unexpected": ["grandparentId", "cross_process_id", "nr.tripId", "nr.pathHash", "nr.referringPathHash", "nr.guid", "nr.referringTransactionGuid", "nr.alternatePathHashes", "parent.transportDuration", "parent.type", "parent.app", "parent.account", "parent.transportType", "parentId"] 1275 } 1276 }, 1277 "expected_metrics": [ 1278 ["Supportability/DistributedTrace/AcceptPayload/ParseException", 1] 1279 ] 1280 } 1281 ]