Interview Prep/Monitoring & Observability/Tracing, OpenTelemetry and CloudWatch

Traces exist but spans have `service.name=unknown_service:java`

BeginnerTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer

Likely causes → OTEL_SERVICE_NAME or service.name resource attribute not set.

Diagnose → Inspect a span's resource attributes in Tempo/Jaeger.

Fix → Set OTEL_SERVICE_NAME=checkout and OTEL_RESOURCE_ATTRIBUTES=deployment.environment=prod,service.version=1.4.2.

Prevent → Inject via the OTel Operator or Helm templates; enforce with a collector resource processor default.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing, OpenTelemetry and CloudWatch