Tracing Setup
In order to use Atoti Server’s tracing capabilities, you will need to use your chosen OpenTelemetry-compatible backend, such as OpenTelemetry SDK, to generate anOpenTelemetry instance. That instance must then be
supplied to Atoti Server in one of these two ways:
- Through a call to
Tracing.setOtelInstance(). - By setting the
GlobalOpenTelemetry.
Tracing.setOtelInstance() has precedence.
Tracing granularity can be configured within Atoti Server by calling Tracing.setSpanLevel(). There are three possibilities :
- NONE : continues the parent span.
- SPECIFIC : mode creates new child span when some significant tasks are being invoked, specified in
Tracing#IMPORTANT_TASKS. - TASK : mode creates new child span whenever a new ForkJoinTask is being called.