Instrument Go in Production
Opinionated Go workflow for instrumenting low-latency APIs and background workers with Obtrace.
Instrument Go in Production
Use this workflow when the first rollout target is a Go API or worker.
Best first targets
- public APIs
- internal gRPC services
- critical background jobs
Sequence
- Install Go SDK
- Configure Authentication
- Add stable service identity fields
- Validate one latency-sensitive request path
- Connect release metadata
Example bootstrap
What to validate
- the service is searchable by one stable
service,env, andversion - one real low-latency path emits both logs and spans
- timeout and panic paths still flush enough evidence for diagnosis
- region is attached when the service is distributed geographically
Done definition
- One Go service emits traces and errors with release context
- Panic and timeout paths are diagnosable