internalcontext

package
v0.0.0-...-b053538 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package internalcontext contains a function to store custom metrics in context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCustomMetrics

func WithCustomMetrics(ctx context.Context) (context.Context, error)

WithCustomMetrics creates a CustomMetrics with dedicated tsmon.State to register custom metrics from service config, and store it in context.

Placing this function in metrics package would cause an import loop.

This function should only be called at server start up.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL