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

chore: fixing issue when metric time is 0 in document-load plugin #546

Merged
merged 3 commits into from
Nov 20, 2019

Conversation

obecny
Copy link
Member

@obecny obecny commented Nov 18, 2019

Which problem is this PR solving?

  • During working on web collector I discovered a bug with document load and when metric is 0 (for example "secureConnectionStart"). The plugin was treated this metric as available and it was shown as metric with negative value

error image

Copy link
Member

@mayurkale22 mayurkale22 left a comment

Choose a reason for hiding this comment

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

LGTM

@OlivierAlbertini OlivierAlbertini added the enhancement New feature or request label Nov 18, 2019
@codecov-io
Copy link

codecov-io commented Nov 19, 2019

Codecov Report

Merging #546 into master will decrease coverage by 2.04%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
- Coverage   92.28%   90.24%   -2.05%     
==========================================
  Files         151      149       -2     
  Lines        7337     7449     +112     
  Branches      647      662      +15     
==========================================
- Hits         6771     6722      -49     
- Misses        566      727     +161
Impacted Files Coverage Δ
...telemetry-plugin-document-load/src/documentLoad.ts 98.13% <100%> (+0.03%) ⬆️
...pentelemetry-core/test/internal/validators.test.ts 50% <0%> (-50%) ⬇️
...elemetry-core/test/trace/spancontext-utils.test.ts 55.55% <0%> (-44.45%) ⬇️
...lemetry-core/test/trace/ProbabilitySampler.test.ts 56.52% <0%> (-43.48%) ⬇️
...s/opentelemetry-core/test/trace/NoopTracer.test.ts 60% <0%> (-40%) ⬇️
...s/opentelemetry-core/test/context/B3Format.test.ts 63.39% <0%> (-36.61%) ⬇️
...ges/opentelemetry-core/test/trace/NoopSpan.test.ts 63.63% <0%> (-36.37%) ⬇️
...s/opentelemetry-core/test/trace/tracestate.test.ts 65.06% <0%> (-34.94%) ⬇️
...ntelemetry-core/test/trace/NoRecordingSpan.test.ts 71.42% <0%> (-28.58%) ⬇️
...ackages/opentelemetry-core/src/platform/node/id.ts 71.42% <0%> (-28.58%) ⬇️
... and 24 more

@mayurkale22
Copy link
Member

/cc @draffensperger

@mayurkale22 mayurkale22 merged commit 478f4cd into open-telemetry:master Nov 20, 2019
@obecny obecny deleted the document_load_fix_time0 branch July 8, 2020 12:11
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
…lemetry#546)

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
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.

7 participants