-
Notifications
You must be signed in to change notification settings - Fork 896
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
Support measurement processors in Metrics SDK #4298
Comments
#1938 for reference. |
From the SIG meeting notes:
|
By @jmacd in #4256 (comment):
@jmacd, do you want to sponsor this or maybe even work on this or help someone who would like to address the issue? |
I think, we could consider also to allow views to read from |
I like the measurement processor concept and am in favor of seeing it added. In addition to adding attributes from baggage, it would allow you to:
There are definitely some performance implications, since changing (adding or removing) attributes on the hotpath is not free from a CPU or memory perspective. But users would be opting into this behavior and can make a decision on whether the behavior is worth the performance penalty. |
This was in the specification at one point, perhaps it was removed? |
|
I can be the sponsor. |
What are you trying to achieve?
I would like to be able to enrich my telemetry using members encoded inside the
Baggage
header. The idea is to enable an "end-to-end telemetry correlation" use case by leveragingContext
andBaggage
.This is easy to do using the Trace SDK by leveraging the SpanProcessor. Concrete implementations exist, such as the one for Go.
Furthermore, a similar concept exists in the Logs SDK - the LogRecordProcessor. Similarly, there seem to exist concrete implementations.
What did you expect to see?
According to the Design Goals of Metrics Specification, enriching metrics attributes via
Baggage
andContext
is a top priority:Based on the quote above, I expected to see a similar "processor" concept for Metrics SDK, but that doesn't seem to be the case.
Additional context.
Even though the "processor" concept isn't fully materialized, some evidence exists in the form of implementation, namely in the
opentelemetry-java
project. It looks likeView
s can accept a set ofAttributesProcessor
s (see here). Moreover, there even exists an implementation of a processor that extracts baggage members and attaches them as attributes (see here). Nevertheless, this feature is marked as experimental.Related Issues.
The text was updated successfully, but these errors were encountered: