Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

refactor: Updated instrumentation to construct spec objects at instrumentation #174

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

bizob2828
Copy link
Member

Proposed Release Notes

  • Updated instrumentation to construct spec objects at instrumentation.
  • Fixed instrumentation to only pass in route parameters to be added to Next.js segments.
  • Updated minimum version of agent to 11.12.0.

Links

Closes #172

Details

Aside from updating instrumentation to pass in specs I realized that we were assigning query params in instrumentation. They were getting assigned as route.parameters.route.<query-param-key>. This is incorrect and the query parameters were automatically getting assigned from parsing the url at transaction end. I also updated the minimum agent version to 11.12.0 as shim.specs needs to be present.

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.23%. Comparing base (6ffb7f1) to head (2407705).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
+ Coverage   93.04%   93.23%   +0.19%     
==========================================
  Files           4        4              
  Lines         273      281       +8     
==========================================
+ Hits          254      262       +8     
  Misses         19       19              
Flag Coverage Δ
unit-tests-16.x 49.82% <23.63%> (+1.10%) ⬆️
unit-tests-18.x 49.82% <23.63%> (+1.10%) ⬆️
unit-tests-20.x 49.82% <23.63%> (+1.10%) ⬆️
versioned-tests-16.x 93.23% <100.00%> (+0.19%) ⬆️
versioned-tests-18.x 93.23% <100.00%> (+0.19%) ⬆️
versioned-tests-20.x 93.23% <100.00%> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bizob2828 bizob2828 merged commit 2c3146a into main Mar 7, 2024
21 checks passed
@github-actions github-actions bot mentioned this pull request Mar 12, 2024
bizob2828 added a commit to bizob2828/newrelic-node-nextjs that referenced this pull request Jul 26, 2024
refactor: Updated instrumentation to construct spec objects at instrumentation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

next.js: Update instrumentation to construct specs at instrumentation level
2 participants