Instrument Your First Service
Complete workflow to choose an SDK, configure auth, attach environment context, and validate production telemetry.
Instrument Your First Service
Use this workflow when you want one service fully instrumented and operationally useful, not just sending raw events.
Goal
By the end of this flow, one production-relevant service should emit telemetry with stable identity, deployment context, and enough evidence for incident diagnosis.
Step 1: Pick the service correctly
Choose the service with the highest operational risk, not the easiest local demo.
Good first targets:
- Checkout
- Auth
- Billing
- API gateway
Step 2: Pick the SDK
Use SDK Catalog, then open the language-specific page:
Step 3: Configure authentication
Read Authentication and ensure environment-specific credentials.
Minimum required values:
OBTRACE_API_KEYOBTRACE_TENANT_IDOBTRACE_PROJECT_ID
Step 4: Add canonical runtime attributes
Every event should contain:
serviceenvversionregionwhen relevant
Without these fields, incident grouping and release correlation get weaker fast.
Examples with the active SDKs:
What the core ingest expects:
tenant_idproject_idapp_idservice_nameenvservice_version
The SDKs map those fields into OTLP. Ingest then derives the scoped envelope used by storage and incident projection.
Step 5: Attach the runtime environment
Choose the runtime path that matches production:
- Kubernetes
- Serverless
- Existing platform-specific guides in
/docs/integrations/*
Step 6: Validate before rollout expands
Expected result:
- Continuous telemetry
- No
401/403auth failures - Stable tags across restarts and deploys
- At least one trace or error with enough context for diagnosis
Minimum validation path:
- Hit one real request path in production or staging.
- Confirm one log and one trace arrive with the same
service,env, andversion. - Confirm region is present if the service is multi-region.
- Only then expand rollout.
Step 7: Add release context
Before scaling rollout, connect CI/CD metadata so incidents can be tied to deploys.
Read:
Done definition
This workflow is complete only when:
- One service is instrumented in production
- The service can be filtered cleanly by
service,env, andversion - Incident evidence is usable without manual log archaeology