elastic / elastic/apm-agent-nodejs

Is it possible to provide setTraceId() to actually customise and replace the traceId generated by the agent?

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

Description

**Is your feature request related to a problem? Please describe.**

The current trace.id can only be generated by the agent and cannot establish the trace chain starting from the client.

**Describe the solution you'd like**

const apm = require('elastic-apm-node');
apm.setTraceId('customTraceId')

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.