elastic / elastic/apm-agent-nodejs

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

Open
#4,082 2 comments 0 reactions 0 assignees View on GitHub
community
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.