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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.