internal

package
v0.0.0-...-2fa0355 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GRPCServiceName      = "otlp-grpc-client"
	Endpoint             = "tracing-analysis-dc-bj.aliyuncs.com:8090"
	TraceToken           = "******_******"
	HTTPServiceName      = "otlp-http-client"
	HTTPEndpoint         = "tracing-analysis-dc-hz.aliyuncs.com"
	HTTPPath             = "adapt_******_******/api/otlp/traces"
	TracerHostnameTagKey = "hostname"
)

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() (string, error)

GetLocalIP returns the IP address of the server.

func InitTracer

func InitTracer(opts ...trace.TracerProviderOption) (func(ctx context.Context), error)

InitTracer initializes and registers `otlpgrpc` or `otlphttp` to global TracerProvider.

func StartRequests

func StartRequests()

StartRequests starts requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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