Skip to content

[chore] Propose additional attribute for 'otelcol.connector.produced.*' metrics #12815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

djaglowski
Copy link
Member

Without this attribute, it's not possible to accurately understand how data flows out of connectors.

Copy link

codecov bot commented Apr 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.43%. Comparing base (0f5d764) to head (9e7ae77).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12815   +/-   ##
=======================================
  Coverage   91.43%   91.43%           
=======================================
  Files         487      487           
  Lines       26811    26811           
=======================================
  Hits        24514    24514           
  Misses       1814     1814           
  Partials      483      483           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@djaglowski djaglowski marked this pull request as ready for review April 9, 2025 16:06
@djaglowski djaglowski requested a review from a team as a code owner April 9, 2025 16:06
@djaglowski djaglowski changed the title Propose additional attribute for 'otelcol.connector.produced.*' metrics [chore] Propose additional attribute for 'otelcol.connector.produced.*' metrics Apr 9, 2025
@mx-psi
Copy link
Member

mx-psi commented Apr 10, 2025

cc @open-telemetry/collector-approvers

I would consider this to be a minor change that does not need to go through the RFC process, but will wait to merge this a couple of days so people can disagree :)

@jade-guiton-dd
Copy link
Contributor

jade-guiton-dd commented Apr 10, 2025

Are otelcol.component.id + otelcol.signal + otelcol.signal.output not sufficient to identify which connector instance is involved, and thus which pipeline it is outputting to?

@djaglowski
Copy link
Member Author

Are otelcol.component.id + otelcol.signal + otelcol.signal.output not sufficient to identify which connector instance is involved, and thus which pipeline it is outputting to?

These attributes are enough to identify the connector instance. However, connectors choose which pipeline(s) to send data to (e.g. routingconnector). Therefore, there is not a 1:1 relationship between data emitted by the connector and data consumed by the pipelines in which it acts as a receiver.

The reason I am proposing this as a data point attribute, as opposed to a scope attribute, is that the set of scope attributes can still provide a consistent identity for the connector instance.

@jade-guiton-dd
Copy link
Contributor

I see, that makes sense. As long as we make it clear it's only an attribute on the pipeline metrics and not one we expect to have on all connector telemetry, that sounds good to me.

@djaglowski
Copy link
Member Author

As long as we make it clear it's only an attribute on the pipeline metrics and not one we expect to have on all connector telemetry

I'm not sure what you mean by "pipeline metrics" but the proposal is to record the pipeline id as a data point attribute on the otelcol.connector.produced.* metrics.

@mx-psi mx-psi added this pull request to the merge queue Apr 14, 2025
Merged via the queue into open-telemetry:main with commit 2cab46e Apr 14, 2025
73 of 75 checks passed
@djaglowski djaglowski deleted the connector-attribute-rfc branch April 14, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants