open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.12k stars 2.39k forks source link

[connector/count] Add support for profiles signal #35982

Open mx-psi opened 1 month ago

mx-psi commented 1 month ago

Component(s)

connector/count

Describe the issue you're reporting

This connector would be useful for testing and validation of the experimental profiling signal.

As inspiration for how to add support this PR can be used: open-telemetry/opentelemetry-collector/pull/11071 (there is no connector with support as of the writing of this issue)

Example of configuration using profiles (needs service.profilesSupport feature gate to be enabled):

receivers:
  otlp:
    protocols:
      grpc:
exporters:
  otlp:
    endpoint: ${OTLP_ENDPOINT}
service:
  pipelines:
    profiles:
      receivers: [otlp]
      exporters: [otlp]
github-actions[bot] commented 1 month ago

Pinging code owners:

haoqixu commented 3 weeks ago

I think we need to enhance pkg/ottl to support profile context first, since the countconnector relies on pkg/ottl. :thinking: