# 05 Work handed to another thread (GET /orders/1/audited submits AuditService.write to a pool) # One trace is expected: SERVER span with audit.write below it. Count the traces. == agent, audit.executor=raw trace 1 (7 spans) GET /orders/{id}/audited [SERVER, scope=io.opentelemetry.tomcat-10.0] SELECT orders.orders [CLIENT, scope=io.opentelemetry.jdbc] GET [CLIENT, scope=io.opentelemetry.java-http-client] GET /inventory/{sku} [SERVER, scope=io.opentelemetry.tomcat-10.0] PricingService.price [INTERNAL, scope=io.opentelemetry.methods] AuditService.write [INTERNAL, scope=io.opentelemetry.methods] INSERT orders.audit_log [CLIENT, scope=io.opentelemetry.jdbc] == micrometer, audit.executor=raw trace 1 (4 spans) http get /orders/{id}/audited [SERVER, scope=org.springframework.boot] http get [CLIENT, scope=org.springframework.boot] http get /inventory/{sku} [SERVER, scope=org.springframework.boot] pricing.compute [INTERNAL, scope=org.springframework.boot] trace 2 (1 spans) audit.write [INTERNAL, scope=org.springframework.boot] == micrometer, audit.executor=spring trace 1 (5 spans) http get /orders/{id}/audited [SERVER, scope=org.springframework.boot] http get [CLIENT, scope=org.springframework.boot] http get /inventory/{sku} [SERVER, scope=org.springframework.boot] pricing.compute [INTERNAL, scope=org.springframework.boot] audit.write [INTERNAL, scope=org.springframework.boot]