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(instrumentation-document-load): documentLoad attributes enhancement #441

Merged

Conversation

kkruk-sumo
Copy link
Contributor

@kkruk-sumo kkruk-sumo commented Apr 22, 2021

Which problem is this PR solving?

This PR answers questions:

  • which website has been loaded (added http.url and page_title),
  • who visited it (added http.user_agent).

@kkruk-sumo kkruk-sumo requested a review from a team April 22, 2021 14:34
assert.strictEqual(rootSpan.name, 'documentFetch');
assert.strictEqual(fetchSpan.name, 'documentLoad');
assert.strictEqual(fetchSpan.name, 'documentFetch');
assert.strictEqual(rootSpan.name, 'documentLoad');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

documentLoad span is the root one so I think previous names were mistaken?

@codecov
Copy link

codecov bot commented Apr 22, 2021

Codecov Report

Merging #441 (37b1244) into main (69d5f8a) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head 37b1244 differs from pull request most recent head a82a57b. Consider uploading reports for the commit a82a57b to get more accurate results

@@           Coverage Diff           @@
##             main     #441   +/-   ##
=======================================
  Coverage   95.24%   95.25%           
=======================================
  Files         133      133           
  Lines        8252     8254    +2     
  Branches      810      810           
=======================================
+ Hits         7860     7862    +2     
  Misses        392      392           
Impacted Files Coverage Δ
...-instrumentation-document-load/src/documentLoad.ts 99.00% <0.00%> (+0.02%) ⬆️

@kkruk-sumo kkruk-sumo force-pushed the document_load_page_extra_attrs branch from 89a2495 to 80a6915 Compare April 26, 2021 21:00
@dyladan
Copy link
Member

dyladan commented Apr 29, 2021

Approved this user to run tests in our CI

Copy link
Member

@obecny obecny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kkruk-sumo
Copy link
Contributor Author

Approved this user to run tests in our CI

@dyladan I had to merge main. Could you approve CI for me again? Thanks :)

@dyladan
Copy link
Member

dyladan commented May 5, 2021

Approved this user to run tests in our CI

@dyladan I had to merge main. Could you approve CI for me again? Thanks :)

Only needs to be done for first run. Everything after that works fine.

@dyladan dyladan added the enhancement New feature or request label May 5, 2021
@dyladan dyladan merged commit 209f336 into open-telemetry:main May 5, 2021
@kkruk-sumo kkruk-sumo deleted the document_load_page_extra_attrs branch May 11, 2021 07:55
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.

4 participants