package stats

import "google.golang.org/grpc/internal/stats"

Package stats provides internal stats related functionality.

Index

Functions

func SetLabels

func SetLabels(ctx context.Context, labels *Labels) context.Context

SetLabels sets the Labels in the context.

Types

type Labels

type Labels struct {
	// TelemetryLabels are the telemetry labels to record.
	TelemetryLabels map[string]string
}

Labels are the labels for metrics.

func GetLabels

func GetLabels(ctx context.Context) *Labels

GetLabels returns the Labels stored in the context, or nil if there is one.

Source Files

labels.go

Version
v1.64.0
Published
May 14, 2024
Platform
darwin/amd64
Imports
1 packages
Last checked
15 minutes ago

Tools for package owners.