Replies: 1 comment 4 replies
-
Currently the list of attributes added to rpc metrics is hardcoded in https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation-api-semconv/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/rpc/MetricsView.java This was done to limit the cardinality of the metrics. We should devise a way to let users specify what attributes they want with with metrics views from the sdk https://github.com/open-telemetry/opentelemetry-java/tree/b14bed8d899d68d365ef590f5caf201ad95c0cb7/sdk-extensions/incubator |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using the manual instrumentation for gRPC using
addServerAttributeExtractor
orsetCapturedServerRequestMetadata
adds the additional attributes only to the span and not to therpc.server.duration
metric.Is that intended?
Is it possible to add custom attributes for that metric?
Beta Was this translation helpful? Give feedback.
All reactions