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 @@
# 03 Same Micrometer build with management.observations.conventions=opentelemetry (new in Spring Boot 4.2)
== spans
-- span tree (one line per span: name [kind, instrumentation scope])
trace 1 (4 spans)
GET /orders/{id} [SERVER, scope=org.springframework.boot]
http get [CLIENT, scope=org.springframework.boot]
GET /inventory/{sku} [SERVER, scope=org.springframework.boot]
pricing.compute [INTERNAL, scope=org.springframework.boot]
trace 2 (4 spans)
GET /orders/{id}/audited [SERVER, scope=org.springframework.boot]
http get [CLIENT, scope=org.springframework.boot]
GET /inventory/{sku} [SERVER, scope=org.springframework.boot]
pricing.compute [INTERNAL, scope=org.springframework.boot]
trace 3 (1 spans)
audit.write [INTERNAL, scope=org.springframework.boot]
-- attribute keys per span name
GET /inventory/{sku} [SERVER]
error.type, http.request.method, http.request.method_original, http.response.status_code, http.route, outcome, url.path, url.scheme
GET /orders/{id} [SERVER]
error.type, http.request.method, http.request.method_original, http.response.status_code, http.route, outcome, url.path, url.scheme
GET /orders/{id}/audited [SERVER]
error.type, http.request.method, http.request.method_original, http.response.status_code, http.route, outcome, url.path, url.scheme
audit.write [INTERNAL]
http get [CLIENT]
client.name, exception, http.url, method, outcome, status, uri
pricing.compute [INTERNAL]
pricing.sku
-- HTTP metrics exported
scope (no scope name) (77 metrics)
http.client.requests histogram unit=milliseconds
http.client.requests.max gauge unit=milliseconds
http.server.request.duration histogram unit=milliseconds
http.server.request.duration.max gauge unit=milliseconds