elastic / elastic-otel-java

Apache License 2.0
10 stars 9 forks source link

Add profiler stack trace IDs as otel attributes #132

Closed JonasKunz closed 5 months ago

JonasKunz commented 5 months ago

Implements the final part of the universal profiling correlation: The IDs of CPU stacktraces are attached as OTel attributes to local root spans. In order to ensure that the spans are not sent before all their data has arrived, they are buffered and delayed for a configurable amount of time.

In a future iteration we hopefully won't need to configure this aspect: The profiler will tell the agent via the communication socket what delay is expected, so that the agent can configure it automatically.