Skip to content

The command provider sets the OpenTelemetry environment on every child: the endpoint, the service and resource attributes, and TRACEPARENT #1171

Open

Description

@David-Noble-at-work

Problem

Ruled 2026-10-24: a program devlore runs takes part in the event bus by its own OpenTelemetry configuration, if it wishes, and devlore assists it. Only devlore knows where the Collector is and which span the program runs inside.

Solution

The command provider sets the standard OpenTelemetry variables in every child's environment: OTEL_EXPORTER_OTLP_ENDPOINT, the Collector the parent exports to (remotely, what carries the bus across SSH); OTEL_SERVICE_NAME and OTEL_RESOURCE_ATTRIBUTES, the program and the run, unit, exec, host and account; and TRACEPARENT, the exec's own span, so a program that reads it nests its spans under the exec. A program without OpenTelemetry ignores them. An option on the command, and a configuration default, turn it off.

Evidence of completion

  • A program instrumented with OpenTelemetry, run through the command provider with no setup of its own, has its spans under the exec's span on the bus
  • The option turns the variables off

Plan and design documents

Kind Document
Plan Not yet opened
Design docs/architecture/2.8-eventing-infrastructure.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions