change semconv metric names to include micro_ prefix

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-09-20 08:38:36 +03:00
parent 4ae7277140
commit a5bfa29ac6
5 changed files with 22 additions and 22 deletions

View File

@ -2,21 +2,21 @@ package semconv
var ( var (
// PublishMessageDurationSeconds specifies meter metric name // PublishMessageDurationSeconds specifies meter metric name
PublishMessageDurationSeconds = "publish_message_duration_seconds" PublishMessageDurationSeconds = "micro_publish_message_duration_seconds"
// PublishMessageLatencyMicroseconds specifies meter metric name // PublishMessageLatencyMicroseconds specifies meter metric name
PublishMessageLatencyMicroseconds = "publish_message_latency_microseconds" PublishMessageLatencyMicroseconds = "micro_publish_message_latency_microseconds"
// PublishMessageTotal specifies meter metric name // PublishMessageTotal specifies meter metric name
PublishMessageTotal = "publish_message_total" PublishMessageTotal = "micro_publish_message_total"
// PublishMessageInflight specifies meter metric name // PublishMessageInflight specifies meter metric name
PublishMessageInflight = "publish_message_inflight" PublishMessageInflight = "micro_publish_message_inflight"
// SubscribeMessageDurationSeconds specifies meter metric name // SubscribeMessageDurationSeconds specifies meter metric name
SubscribeMessageDurationSeconds = "subscribe_message_duration_seconds" SubscribeMessageDurationSeconds = "micro_subscribe_message_duration_seconds"
// SubscribeMessageLatencyMicroseconds specifies meter metric name // SubscribeMessageLatencyMicroseconds specifies meter metric name
SubscribeMessageLatencyMicroseconds = "subscribe_message_latency_microseconds" SubscribeMessageLatencyMicroseconds = "micro_subscribe_message_latency_microseconds"
// SubscribeMessageTotal specifies meter metric name // SubscribeMessageTotal specifies meter metric name
SubscribeMessageTotal = "subscribe_message_total" SubscribeMessageTotal = "micro_subscribe_message_total"
// SubscribeMessageInflight specifies meter metric name // SubscribeMessageInflight specifies meter metric name
SubscribeMessageInflight = "subscribe_message_inflight" SubscribeMessageInflight = "micro_subscribe_message_inflight"
// BrokerGroupLag specifies broker lag // BrokerGroupLag specifies broker lag
BrokerGroupLag = "broker_group_lag" BrokerGroupLag = "micro_broker_group_lag"
) )

View File

@ -2,11 +2,11 @@ package semconv
var ( var (
// ClientRequestDurationSeconds specifies meter metric name // ClientRequestDurationSeconds specifies meter metric name
ClientRequestDurationSeconds = "client_request_duration_seconds" ClientRequestDurationSeconds = "micro_client_request_duration_seconds"
// ClientRequestLatencyMicroseconds specifies meter metric name // ClientRequestLatencyMicroseconds specifies meter metric name
ClientRequestLatencyMicroseconds = "client_request_latency_microseconds" ClientRequestLatencyMicroseconds = "micro_client_request_latency_microseconds"
// ClientRequestTotal specifies meter metric name // ClientRequestTotal specifies meter metric name
ClientRequestTotal = "client_request_total" ClientRequestTotal = "micro_client_request_total"
// ClientRequestInflight specifies meter metric name // ClientRequestInflight specifies meter metric name
ClientRequestInflight = "client_request_inflight" ClientRequestInflight = "micro_client_request_inflight"
) )

View File

@ -1,4 +1,4 @@
package semconv package semconv
// LoggerMessageTotal specifies meter metric name for logger messages // LoggerMessageTotal specifies meter metric name for logger messages
var LoggerMessageTotal = "logger_message_total" var LoggerMessageTotal = "micro_logger_message_total"

View File

@ -2,11 +2,11 @@ package semconv
var ( var (
// ServerRequestDurationSeconds specifies meter metric name // ServerRequestDurationSeconds specifies meter metric name
ServerRequestDurationSeconds = "server_request_duration_seconds" ServerRequestDurationSeconds = "micro_server_request_duration_seconds"
// ServerRequestLatencyMicroseconds specifies meter metric name // ServerRequestLatencyMicroseconds specifies meter metric name
ServerRequestLatencyMicroseconds = "server_request_latency_microseconds" ServerRequestLatencyMicroseconds = "micro_server_request_latency_microseconds"
// ServerRequestTotal specifies meter metric name // ServerRequestTotal specifies meter metric name
ServerRequestTotal = "server_request_total" ServerRequestTotal = "micro_server_request_total"
// ServerRequestInflight specifies meter metric name // ServerRequestInflight specifies meter metric name
ServerRequestInflight = "server_request_inflight" ServerRequestInflight = "micro_server_request_inflight"
) )

View File

@ -2,11 +2,11 @@ package semconv
var ( var (
// StoreRequestDurationSeconds specifies meter metric name // StoreRequestDurationSeconds specifies meter metric name
StoreRequestDurationSeconds = "store_request_duration_seconds" StoreRequestDurationSeconds = "micro_store_request_duration_seconds"
// ClientRequestLatencyMicroseconds specifies meter metric name // ClientRequestLatencyMicroseconds specifies meter metric name
StoreRequestLatencyMicroseconds = "store_request_latency_microseconds" StoreRequestLatencyMicroseconds = "micro_store_request_latency_microseconds"
// StoreRequestTotal specifies meter metric name // StoreRequestTotal specifies meter metric name
StoreRequestTotal = "store_request_total" StoreRequestTotal = "micro_store_request_total"
// StoreRequestInflight specifies meter metric name // StoreRequestInflight specifies meter metric name
StoreRequestInflight = "store_request_inflight" StoreRequestInflight = "micro_store_request_inflight"
) )