Add otel-agent-vs-micrometer module: OpenTelemetry Java agent 2.34.0 vs Micrometer Tracing on Spring Boot 4.2.0, same app instrumented both ways, with real transcripts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
This commit is contained in:
Claude
2026-11-29 02:59:07 +05:30
parent cbcfb05e35
commit 658bc52e2b
31 changed files with 1435 additions and 0 deletions
@@ -0,0 +1,29 @@
# 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]