elastic / elastic/apm-agent-nodejs
Perf Work: Investigate TraceContext/TraceState
- Dominant language
- JavaScript
- Stars
- 594
- Forks
- 244
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 16
Description
We have a few indicators that the performance of our TraceState implementation could be improved. Flame graphs show an abnormal amount of CPU usage, and the overhead benchmarks showed a 20 - 40 microsecond bump after landing this work.

This Issue represents the work to
1. Compare a No-Op tracestate implementation with our Kibana demo journey to determine if these perf issue effect our load time statistics
2. Investigate alternate implementations of TraceState, including the [Open Telemetry implementation](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-core/src/trace/TraceState.ts)
Contributor guide
Assessment
This issue has not been assessed yet.