Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nimf
Copy link
Collaborator

@nimf nimf commented Nov 8, 2024

Additional metrics provided via GcpMetricsInterceptor.

This does not address comments to the design yet -- will be updated in the next PR.

@nimf nimf requested a review from fengli79 November 8, 2024 20:53
public enum Attr {
STATUS("grpc.status"),
METHOD("grpc.method"),
METHOD_TYPE("grpcgcp.method_type"),
Copy link
Collaborator

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");
Copy link
Collaborator

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 {
Copy link
Collaborator

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 {
Copy link
Collaborator

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.

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.

2 participants