trace

package
v0.0.0-...-c5cc7cd Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGraphQLServerPlugin

func NewGraphQLServerPlugin(service string, provider trace.TracerProvider) graphql.HandlerExtension

NewGraphQLServerPlugin creates a tracing plugin for GraphQL servers. Traces the GraphQL request and injects the tracer into the request context.

func NewHTTPDSPlugin

func NewHTTPDSPlugin(provider trace.TracerProvider) httpds.Plugin

NewHTTPDSPlugin creates a tracing plugin for HTTP data sources. Traces the HTTP request.

func NewRESTServerPlugin

func NewRESTServerPlugin(service string, provider trace.TracerProvider) []gin.HandlerFunc

NewRESTServerPlugin creates a tracing plugin for REST servers. Traces the HTTP request and injects the tracer into the request context.

func NewTracerProvider

func NewTracerProvider(
	service string,
	appEnvironment config.AppEnvironment,
) *trace.TracerProvider

NewTracerProvider creates a new tracer provider. One should one tracer provider per app/service (queues, HTTP data sources, databases, servers, etc.)

Types

type TracerProvider

type TracerProvider oteltrace.TracerProvider

Jump to

Keyboard shortcuts

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