-
Notifications
You must be signed in to change notification settings - Fork 23
gRPC-GCP metrics #191
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
base: master
Are you sure you want to change the base?
gRPC-GCP metrics #191
Conversation
public enum Attr { | ||
STATUS("grpc.status"), | ||
METHOD("grpc.method"), | ||
METHOD_TYPE("grpcgcp.method_type"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove, I'd like to start from the bare minimum set of labels and we don't need the method_type at this moment.
STATUS("grpc.status"), | ||
METHOD("grpc.method"), | ||
METHOD_TYPE("grpcgcp.method_type"), | ||
TRANSPARENT_RETRY("grpcgcp.tr_retry"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for transparent retry.
* attributes provide additional context about the metric being recorded. For example, STATUS | ||
* represents the gRPC status code, METHOD represents the gRPC method name, and so on. | ||
*/ | ||
public enum Attr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please align with OpenTelemetry concepts for the naming, using Label instead of Attr.
* Kind (e.g., COUNTER, HISTOGRAM), an internal Unit (e.g., NANOSECONDS, OCCURENCES), and a | ||
* default MetricConfig. | ||
*/ | ||
public enum Metric implements ConfigurableMetric { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you help to check https://github.com/grpc/grpc-java/tree/master/opentelemetry and re-architect the implementation in a similar way?
We don't need to define our own model which forks the opentelemetry concepts.
Additional metrics provided via GcpMetricsInterceptor.
This does not address comments to the design yet -- will be updated in the next PR.