Skip to content

Workflow-Specific OTEL Service Names #31678

@jaroslawgajewski

Description

@jaroslawgajewski

Description

Compiled workflows with observability.otlp currently use the same OTEL_SERVICE_NAME value. This makes workflow-level filtering and dashboards harder because traces from all workflows are merged into one logical service.

Reproduction

  1. Enable observability.otlp in multiple workflows.
  2. Compile and run workflows.
  3. Inspect telemetry backend and observe all traces grouped under a single service name.

Current Workaround

A local post-compile patch rewrites OTEL_SERVICE_NAME to gh-aw. per lock file.

Proposed Fix

Compiler should emit workflow-specific OTEL_SERVICE_NAME values by default, for example gh-aw., while preserving an opt-out override.

Environment

  • gh-aw CLI: v0.72.1
  • Affected output: lock-file env for OTLP-enabled workflows
  • Impact: telemetry observability and per-workflow cost analysis

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions