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:
@@ -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]
|
||||
Reference in New Issue
Block a user