Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Jaglowski 279752c11f
[service/internal/graph] Measure telemetry as it is passed between pipeline components (#12812)
Depends on
https://github.com/open-telemetry/opentelemetry-collector/pull/12856

Resolves #12676

This is a reboot of #11311, incorporating metrics defined in the
[component telemetry
RFC](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/component-universal-telemetry.md)
and attributes added in #12617.

The basic pattern is:
- When building any pipeline component which produces data, wrap the
"next consumer" with instrumentation to measure the number of items
being passed. This wrapped consumer is then passed into the constructor
of the component.
- When building any pipeline component which consumes data, wrap the
component itself. This wrapped consumer is saved onto the graph node so
that it can be retrieved during graph assembly.

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2025-05-12 08:33:02 +00:00
Alex Boten f74890a388
[service] update telemetry level to reflect their state (#11729)
This sets the level of all metrics that where not previously stabilized
as alpha. Since many of these metrics will change as a result of
https://github.com/open-telemetry/opentelemetry-collector/pull/11406, it
made sense to me to set their stability as alpha.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-11-22 09:53:18 -08:00
Alex Boten 5753a58f71
update all metrics to include otelcol_ prefix (#9759)
This ensures the consistency for folks emitting metrics w/ OTLP until
the OTEP to specify pipeline telemetry is completed.

Waiting on
https://github.com/open-telemetry/opentelemetry-collector/pull/9775
before moving this forward

Fixes #9315

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-07-16 16:18:37 -07:00
Alex Boten a2289fd910
[service] use mdatagen for service metrics (#10273)
This reverts the reverts
https://github.com/open-telemetry/opentelemetry-collector/pull/10271 and
adds a mechanism to skip adding a create settings method for the service
package component test. Will need to figure out if
servicetelemetry.TelemetrySettings should be renamed to fit w/ the other
CreateSettings structs before removing this check.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-06-10 09:04:29 -07:00
Alex Boten 1749a8f19d
Revert "[chore] use mdatagen to generate service metrics (#10160)" (#10271)
This reverts commit 10bcef33e6.
2024-05-30 11:45:17 -07:00
Alex Boten 10bcef33e6
[chore] use mdatagen to generate service metrics (#10160)
This PR follows
https://github.com/open-telemetry/opentelemetry-collector/pull/10159 and
uses the new mdatagen functionality to generate async metrics in the
service.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-05-30 09:40:47 -07:00