Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracerProvider ¶
func NewTracerProvider(url string, rc *ResourceConfig) (*trace.TracerProvider, error)
NewTracerProvider
参考: https://github.com/open-telemetry/opentelemetry-go/blob/main/example/jaeger/main.go tracerProvider returns an OpenTelemetry TracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The returned TracerProvider will also use a Resource configured with all the information about the application. @param url e.g."http://localhost:14268/api/traces"
Types ¶
type Config ¶
type Config struct { Access bool `json:"access"` // Url Jaeger服务的url,e.g."http://localhost:14268/api/traces" Url string `json:"url"` }
type ResourceConfig ¶
Click to show internal directories.
Click to hide internal directories.