Documentation
¶
Index ¶
- func ContextWithSpan(c context.Context, span trace.Span) context.Context
- func GetPropagation() propagation.TextMapPropagator
- func GetTracer() trace.Tracer
- func GetTracerProvider() trace.TracerProvider
- func NewHttpClient(rt http.RoundTripper) *http.Client
- func SetHttpClient(ctx context.Context) context.Context
- func SpanFromContext(ctx context.Context) trace.Span
- func Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
- func TransportWrapper(rt http.RoundTripper) http.RoundTripper
- type ExporterName
- type Option
- type Service
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPropagation ¶
func GetPropagation() propagation.TextMapPropagator
func GetTracerProvider ¶
func GetTracerProvider() trace.TracerProvider
func NewHttpClient ¶
func NewHttpClient(rt http.RoundTripper) *http.Client
func TransportWrapper ¶
func TransportWrapper(rt http.RoundTripper) http.RoundTripper
Types ¶
type ExporterName ¶
type ExporterName int
const ( ExporterNone ExporterName = iota ExporterJaeger ExporterJSON )
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithExporter ¶
func WithExporter(name ExporterName) Option
func WithFileName ¶
func WithWriter ¶
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
func InitOpenTelemetry ¶
Click to show internal directories.
Click to hide internal directories.