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

how to get Traceparent/currentTraceparent in rum agent #936

Closed
Manjukb opened this issue Nov 20, 2020 · 2 comments
Closed

how to get Traceparent/currentTraceparent in rum agent #936

Manjukb opened this issue Nov 20, 2020 · 2 comments
Labels

Comments

@Manjukb
Copy link

Manjukb commented Nov 20, 2020

our app uses socket.io and elastic apm wont track socket transactions automatically
so trying to instrument code to send trace data
how to get traceparent value when i start a new transactions when i do transaction.traceparent i get null but same works in nodejs agent

		`const transaction = apm.startTransaction('message', 'socket', { managed: true })
        console.log(transaction.traceparent );`
@kirbysayshi
Copy link

I was recently wondering this too. A use case is passing a traceparent header manually to the server in the case of an unsupported technology like WebSockets.

@vigneshshanmugam
Copy link
Member

This is a duplicate issue - #468, We will soon expose a way to set the trace propagation through the agent API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants