opentelemetry

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareBuilder

type MiddlewareBuilder struct {
	Tracer trace.Tracer // Tracer is an interface that abstracts the tracing functionality.

}

MiddlewareBuilder is a struct that aids in constructing middleware with tracing capabilities. It holds a reference to a Tracer instance which will be used to trace the flow of HTTP requests.

func (MiddlewareBuilder) Build

func (m MiddlewareBuilder) Build() mist.Middleware

Build is a method attached to the MiddlewareBuilder struct. This method initializes and returns a Tracing middleware that can be used in the mist HTTP framework. This middleware is responsible for starting a new span for each incoming HTTP request, sets various attributes related to the request and ensures that the span is ended properly after the request is handled.

Jump to

Keyboard shortcuts

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