instrumentation

package
v0.0.0-...-091f6e1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CALIDUM_ROTAE_TRACER     = "calidum-rotae-tracer"
	CALIDUM_ROTAE_SERVICE    = "calidum_rotae_service"
	DISCORD_PROVIDER_SERVICE = "discord_provider"
	EMAIL_PROVIDER_SERVICE   = "email_provider"
)

Variables

This section is empty.

Functions

func SetupOpenTelemetry

func SetupOpenTelemetry(ctx context.Context, host, port string) (*sdktrace.TracerProvider, error)

Types

type Traces

type Traces struct {
	CalidumRotaeTracer trace.Tracer
}

func (*Traces) GrpcSpan

func (tracer *Traces) GrpcSpan(ctx context.Context, spanName, funcName, service string) (context.Context, trace.Span)

func (*Traces) HttpPostSpan

func (tracer *Traces) HttpPostSpan(ctx context.Context, g *gin.Context, spanName string) (context.Context, trace.Span)

Jump to

Keyboard shortcuts

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