github.com/blend/go-sdk@v1.20220411.3/stats/grpcstats/constants.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package grpcstats 9 10 import "github.com/blend/go-sdk/grpcutil" 11 12 // Tag constants 13 const ( 14 TagRPCMethod string = "rpc_method" 15 TagRPCPeer string = "rpc_peer" 16 TagRPCStreamMessageDirection string = "rpc_stream_msg_direction" 17 TagRPCEngine string = "rpc_peer" 18 TagRPCAuthority string = "rpc_authority" 19 20 RPCMethodUnknown string = "unknown" 21 22 MetricNameRPC string = string(grpcutil.FlagRPC) 23 MetricNameRPCStreamMessage string = string(grpcutil.FlagRPCStreamMessage) 24 MetricNameRPCElapsed string = MetricNameRPC + ".elapsed" 25 MetricNameRPCElapsedLast string = MetricNameRPCElapsed + ".last" 26 MetricNameRPCStreamMessageElapsed string = MetricNameRPCStreamMessage + ".elapsed" 27 MetricNameRPCStreamMessageElapsedLast string = MetricNameRPCStreamMessageElapsed + ".last" 28 )