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

fix(opentelemetry-instrumentation-document-load): updated instrumenta… #1075

Conversation

crobertson-conga
Copy link

@crobertson-conga crobertson-conga commented Jul 1, 2022

…tion of document load to disallow end time being set to value before start time

Which problem is this PR solving?

Short description of the changes

  • Updated the explicit end span to validate that the end time is actually after the start time when the source of those timestamps are performance metrics, otherwise falling back to the start time.

Checklist

  • Ran npm run test-all-versions for the edited package(s) on the latest commit if applicable.

…tion of document load to disallow end time being set to value before start time
@crobertson-conga crobertson-conga requested a review from a team July 1, 2022 17:00
@github-actions github-actions bot requested a review from obecny July 1, 2022 17:00
span.end(entries[startPerformanceName]);
} else {
span.end(entries[performanceName]);
}
Copy link
Author

Choose a reason for hiding this comment

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

I could not seem to access the span end timestamp here which is why I'm passing the original start value to check against.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2022

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the stale label Sep 5, 2022
@github-actions
Copy link
Contributor

This PR was closed because it has been stale for 14 days with no activity.

@github-actions github-actions bot closed this Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser document-load plugin occasionally has start date after end date for spans.
2 participants