-
Notifications
You must be signed in to change notification settings - Fork 97
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 public API for root span id #542
Conversation
Typo in the commit message |
src/trace-api.js
Outdated
@@ -33,6 +33,7 @@ var TracingPolicy = require('./tracing-policy.js'); | |||
var phantomApiImpl = { | |||
enhancedDatabaseReportingEnabled: function() { return false; }, | |||
runInRootSpan: function(opts, fn) { return fn(null); }, | |||
// getRootSpanId: function() { return null; }, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a nit.
src/trace-api.js
Outdated
* is that the value would unique for every root span. | ||
* @returns {string} the root span id, or null if it doesn't exist | ||
*/ | ||
TraceAgent.prototype.getRootSpanId = function() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Make it possible for external users to get a unique identifier for the root span. This can be used to uniquely identify the top level incoming http request context for example.
b3eea77
to
8949b80
Compare
@@ -33,6 +33,7 @@ var TracingPolicy = require('./tracing-policy.js'); | |||
var phantomApiImpl = { | |||
enhancedDatabaseReportingEnabled: function() { return false; }, | |||
runInRootSpan: function(opts, fn) { return fn(null); }, | |||
getCurrentContext: function() { return null; }, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Renamed to |
Make it possible for external users to get a unique identifier for the
root span. This can be used to uniquely identify the top level
incoming http request context for example.