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,37 @@
# 01 OpenTelemetry Java agent 2.34.0 on the unmodified 'plain' jar (Spring Boot 4.2.0, JDK 25.0.5.1)
# Requests sent after warm-up: GET /orders/1, then GET /orders/1/audited
== spans
-- span tree (one line per span: name [kind, instrumentation scope])
trace 1 (5 spans)
GET /orders/{id} [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]
trace 2 (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]
-- attribute keys per span name
AuditService.write [INTERNAL]
code.function, code.namespace, thread.id, thread.name
GET /inventory/{sku} [SERVER]
client.address, http.request.method, http.response.status_code, http.route, network.peer.address, network.peer.port, network.protocol.version, server.address, server.port, thread.id, thread.name, url.path, url.scheme, user_agent.original
GET /orders/{id} [SERVER]
client.address, http.request.method, http.response.status_code, http.route, network.peer.address, network.peer.port, network.protocol.version, server.address, server.port, thread.id, thread.name, url.path, url.scheme, user_agent.original
GET /orders/{id}/audited [SERVER]
client.address, http.request.method, http.response.status_code, http.route, network.peer.address, network.peer.port, network.protocol.version, server.address, server.port, thread.id, thread.name, url.path, url.scheme, user_agent.original
GET [CLIENT]
http.request.method, http.response.status_code, network.protocol.version, server.address, server.port, thread.id, thread.name, url.full
INSERT orders.audit_log [CLIENT]
db.connection_string, db.name, db.operation, db.sql.table, db.statement, db.system, db.user, thread.id, thread.name
PricingService.price [INTERNAL]
code.function, code.namespace, thread.id, thread.name
SELECT orders.orders [CLIENT]
db.connection_string, db.name, db.operation, db.sql.table, db.statement, db.system, db.user, thread.id, thread.name