Spring Boot Project Guide
Complete instrumentation pattern for Spring Boot services
Use this guide for Spring Boot services where request pipelines, services, and repositories must remain diagnosable.
Architecture Scope
- Controllers and servlet filter chain.
- Service and repository layers.
- Outbound clients (HTTP, messaging, DB).
Recommended Setup
- Initialize SDK during application startup.
- Instrument inbound HTTP requests.
- Capture exceptions and map to traces.
- Instrument DB and external client calls.
Minimum Data Contract
service,env,versiontags in every signal.- Release metadata for deployment correlation.
- Error events with stack context and route name.
Validation Checklist
- Boot sequence emits startup signal.
- 5xx responses are trace-linked.
- Slow queries appear in span timeline.
Production Hardening
- Ensure shutdown hooks flush telemetry.
- Keep retry bounded to avoid cascading failures.
- Add alerts on ingestion/auth errors.
- Validate after dependency and Java version updates.
Troubleshooting
- No data after startup refactor: confirm bean init path.
- Missing DB spans: ensure instrumentation wraps driver/repo boundaries.
- High cardinality: normalize dynamic tag values.