Created
July 24, 2018 23:30
-
-
Save nathanpeck/df102bf6fc1881d98f51f1b88d018e4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const span = tracer.startSpan('ws'); | |
span.setTag('service.name', 'frontend-ws'); | |
span.setTag('resource.name', 'new message'); | |
// Must call this otherwise asychronous trace spans don't show up under the overall span. | |
tracer.scopeManager().activate(span); | |
// Asynchronous code starts here. | |
// At some point in the future, right before the callback | |
span.finish(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment