Documentation ¶
Index ¶
Constants ¶
View Source
const ( TraceIdKey = "trace-id" SpanIdKey = "span-id" )
Variables ¶
This section is empty.
Functions ¶
func NewJaegerTracerProvider ¶
func NewJaegerTracerProvider(url, service, environment string, id int64) (*trace.TracerProvider, error)
NewJaegerTracerProvider
PS: (1) agent 默认端口: 6831 (2) collector 默认端口: 14268 (3) 创建 TracerProvider 成功的情况下(即第2个返回值为nil),建议调用 otel.SetTracerProvider().
@param url 连接的jaeger服务(agent || collector) e.g."http://localhost:14268/api/traces"
func NewRemoteContext ¶ added in v2.2.58
NewRemoteContext TODO:
@param traceIdStr 请求头中,"trace-id"对应的值 @param spanIdStr 请求头中,"span-id"对应的值
func ShutdownJaegerTracerProvider ¶ added in v2.2.57
func ShutdownJaegerTracerProvider(tp *trace.TracerProvider)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.