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

Is there any plan to add a way to customize trace.id ? #4082

Open
zurmokeeper opened this issue Jun 13, 2024 · 2 comments
Open

Is there any plan to add a way to customize trace.id ? #4082

zurmokeeper opened this issue Jun 13, 2024 · 2 comments

Comments

@zurmokeeper
Copy link

Is there any plan to add a way to customize trace.id, like the following:

const apm = require('elastic-apm-node').start({
    // Override service name from package.json
    // Allowed characters: a-z, A-Z, 0-9, -, _, and space
    serviceName: 'service',
    // Set custom APM Server URL (default: http://localhost:8200)
    serverUrl: APM_SERVER_URL,
});

apm.setTransactionName('xxx');

apm.setTraceId(customTraceId);   // This
@trentm
Copy link
Member

trentm commented Jun 13, 2024

@zurmokeeper No, there is no current plan to do this.
What is the use case for doing this?

@trentm trentm removed the triage label Jun 13, 2024
@zurmokeeper
Copy link
Author

@trentm I need to bring a custom customTraceId when the client initiates a request, and then I need the apm's traceId to be equal to this one, so I can realize that from the client onwards, with the same id associated with the client, for me to find the logs will be much more convenient.

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

No branches or pull requests

2 participants