Commit 54ff1e6
* Add trace reporting api
Co-Authored-By: Trevor Scheer <trevor@apollographql.com>
* Set captureTraces to false if we don't report
* Fix tests
* Apply suggestions from code review
Co-authored-by: Jesse Rosenberger <git@jro.cc>
* Address comments
* Prettier
* Revert "Prettier"
This reverts commit e00dfe1.
The need to revert this is not the fault of the author at all. The
thrashing here is truly unfortunate, but that's a result of past patterns
and this monorepo cannot tolerate any more burying of history.
By reverting this commit, the blame for the lines it tried to change will
not be re-directed at the author of `e00dfe1db` when they were introduced by
others.
Most importantly, this makes it reasonable to accurately review this PR in a
timely fashion.
* Move code around and clean
* Set capture traces in the reporting agent.
* Clean up
* Add documentation
* Remove unnecessary check
* Update CHANGELOG.md
Co-authored-by: Jesse Rosenberger <git@jro.cc>
* Update packages/apollo-engine-reporting/src/__tests__/plugin.test.ts
Co-authored-by: Jesse Rosenberger <git@jro.cc>
* Apply suggestions from code review
Co-authored-by: Jesse Rosenberger <git@jro.cc>
* Prettier
* Remove shouldReportTrace
* Update docs/source/api/apollo-server.md
Co-authored-by: Jesse Rosenberger <git@jro.cc>
* Update packages/apollo-engine-reporting/src/agent.ts
Co-authored-by: Jesse Rosenberger <git@jro.cc>
* Update packages/apollo-engine-reporting/src/agent.ts
Co-authored-by: Jesse Rosenberger <git@jro.cc>
* Address comments
* Update changelog
* Re-prettier agent.ts
* Address comments
* Quick comment change
* Rename to instrument operation
* Update apollo-server.md
* Rename to `timeOperation`
* chore(deps): update dependency gatsby-theme-apollo-docs to v4.2.6 (#4243)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps): update dependency @types/aws-lambda to v8.10.56 (#4247)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps): update dependency @types/ioredis to v4.16.5 (#4248)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps): update dependency @types/uuid to v7.0.4 (#4250)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps): update dependency gatsby to v2.23.3 (#4251)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps): update dependency @types/supertest to v2.0.9 (#4249)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* chore(deps): update dependency lerna to v3.22.1 (#4252)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
* Rename to report timing
* Update changelog
* Use code fences in API documentation
Co-authored-by: Joshua Segaran <joshua.segaran@apollographql.com>
Co-authored-by: Trevor Scheer <trevor@apollographql.com>
Co-authored-by: Jesse Rosenberger <git@jro.cc>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
1 parent a4c7e15 commit 54ff1e6
10 files changed
Lines changed: 338 additions & 43 deletions
File tree
- docs/source/api
- packages
- apollo-engine-reporting/src
- __tests__
- apollo-server-core/src
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
483 | 495 | | |
484 | 496 | | |
485 | 497 | | |
| |||
Lines changed: 173 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
48 | 60 | | |
49 | | - | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
191 | 203 | | |
192 | 204 | | |
193 | 205 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 206 | | |
199 | 207 | | |
| 208 | + | |
200 | 209 | | |
201 | 210 | | |
202 | 211 | | |
| |||
462 | 471 | | |
463 | 472 | | |
464 | 473 | | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
465 | 632 | | |
466 | 633 | | |
467 | 634 | | |
| |||
0 commit comments