Skip to content
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

Updating metric name #696

Merged
merged 1 commit into from Mar 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/constants.go
Expand Up @@ -50,7 +50,7 @@ const (
// clientHTTPUnmarshalError is the metric for tracking errors due to unmarshalling json responses
clientHTTPUnmarshalError = "client.http-unmarshal-error"
// clientTchannelReadError is the metric for tracking errors in reading tchannel response
clientTchannelReadError = "client.tchannel-read-error"
clientTchannelUnmarshalError = "client.tchannel-unmarshal-error"
)

var knownMetrics = []string{
Expand Down
2 changes: 1 addition & 1 deletion runtime/tchannel_outbound_call.go
Expand Up @@ -230,7 +230,7 @@ func (c *tchannelOutboundCall) readResBody(ctx context.Context, response *tchann
}
if err := ReadStruct(treader, resp); err != nil {
_ = treader.Close()
c.metrics.IncCounter(ctx, clientTchannelReadError, 1)
c.metrics.IncCounter(ctx, clientTchannelUnmarshalError, 1)
return errors.Wrapf(
err, "Could not read outbound %s.%s (%s %s) response",
c.client.ClientID, c.methodName, c.client.serviceName, c.serviceMethod,
Expand Down