Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add NestJS instrumentation #553

Merged
merged 25 commits into from Aug 18, 2021

Conversation

rauno56
Copy link
Member

@rauno56 rauno56 commented Jun 30, 2021

Which problem is this PR solving?

Adds a auto-instrumentation for NestJS. The current solution is still minimal and only traces controllers and the whole request context. Latter also includes guard, interception and pipe execution, which are currently not traced but can be added later without breaking what's already there.

@rauno56 rauno56 force-pushed the feat/nestjs-core-instrumentation branch from 3e3ad83 to e407e1c Compare July 6, 2021 13:01
@rauno56 rauno56 force-pushed the feat/nestjs-core-instrumentation branch from e407e1c to 189f896 Compare July 28, 2021 08:51
@rauno56 rauno56 marked this pull request as ready for review July 28, 2021 08:53
@rauno56 rauno56 requested a review from a team as a code owner July 28, 2021 08:53
@rauno56 rauno56 changed the title WIP: NestJS instrumentation feat: Add NestJS instrumentation Jul 28, 2021
@codecov
Copy link

codecov bot commented Jul 28, 2021

Codecov Report

Merging #553 (731c430) into main (d7f458f) will decrease coverage by 2.64%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #553      +/-   ##
==========================================
- Coverage   96.68%   94.03%   -2.65%     
==========================================
  Files          13       20       +7     
  Lines         634      906     +272     
  Branches      124      161      +37     
==========================================
+ Hits          613      852     +239     
- Misses         21       54      +33     
Impacted Files Coverage Δ
...instrumentation-nestjs-core/src/instrumentation.ts 95.45% <0.00%> (ø)
...elemetry-instrumentation-nestjs-core/test/setup.ts 70.23% <0.00%> (ø)
...-instrumentation-nestjs-core/src/enums/NestType.ts 100.00% <0.00%> (ø)
...umentation-nestjs-core/src/enums/AttributeNames.ts 100.00% <0.00%> (ø)
...lemetry-instrumentation-nestjs-core/src/version.ts 100.00% <0.00%> (ø)
...try-instrumentation-nestjs-core/src/enums/index.ts 100.00% <0.00%> (ø)
...try-instrumentation-nestjs-core/test/index.test.ts 95.23% <0.00%> (ø)

@rauno56
Copy link
Member Author

rauno56 commented Jul 28, 2021

Note to myself: When that gets merged, I need to update versions again.

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
@dyladan
Copy link
Member

dyladan commented Aug 9, 2021

Can you please add yourself to .github/component_owners.yml

@rauno56 rauno56 force-pushed the feat/nestjs-core-instrumentation branch from a2200e5 to 41cbf63 Compare August 11, 2021 16:39
@dyladan dyladan added the enhancement New feature or request label Aug 18, 2021
@dyladan dyladan merged commit 0d4733b into open-telemetry:main Aug 18, 2021
@rauno56 rauno56 deleted the feat/nestjs-core-instrumentation branch August 19, 2021 07:31
@dyladan dyladan mentioned this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants