Skip to content

[exporterhelper] Implement new component-identifying attributes #12213

@jade-guiton-dd

Description

@jade-guiton-dd

The Pipeline Component Telemetry RFC defines a set of attributes that should be used to describe which component instance a telemetry item comes from.

The exporter attribute on the exporterhelper spans and metrics exposes the component ID, and the span/metric names + data_type span attribute expose the relevant signal, which is enough to identify the component instance. However, this does not follow the RFC's conventions.

To bring things in line with the RFC, we would need to add the following attributes to metrics and spans:

  • otelcol.component.kind: always exporter
  • otelcol.component.id: the component ID
  • otelcol.signal: logs, metrics, traces, profiles

All this information should already be available in the helper, but instead of implementing the attributes manually, I would recommend waiting to see if the pipeline telemetry implementation introduces a general mechanism for getting these attributes.

This would be a step towards the stabilization of the otlpexporter and otlphttpexporter: cf. #11140.

Metadata

Metadata

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions