k6

package module
v0.0.0-...-ecb7b83 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

README

Pyroscope Go SDK k6 extension

This library provides extension functions to provide support for Grafana's integration between Pyroscope and k6. Namely, it provides HTTP and gRPC middleware to dynamically label the profiling context with k6 test metadata.

[!CAUTION] Maintainers: Be aware this project has its own go.work file and is built independently of the rest of the Go SDK. This is because this project has a dependency on google.golang.org/grpc which is only supported for the last 2 major versions of Go. Since it's not acceptable to extend this restriction to the remainder of the SDK, this module remains independent from the rest of the code base.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelsFromBaggageHandler

func LabelsFromBaggageHandler(handler http.Handler) http.Handler

LabelsFromBaggageHandler is a middleware that will extract key-value pairs from the request baggage and make them profiling labels.

func LabelsFromBaggageUnaryInterceptor

func LabelsFromBaggageUnaryInterceptor(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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