Documentation
¶
Index ¶
- func ComponentOpName(cmp, target string) string
- func SetSpanError(span trace.Span, msg string, err error)
- func SetSpanSuccess(span trace.Span)
- func Setup(name string, res *resource.Resource, exp sdktrace.SpanExporter) *sdktrace.TracerProvider
- func SetupGRPC(ctx context.Context, name string, res *resource.Resource) (*sdktrace.TracerProvider, error)
- func StartSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentOpName ¶
ComponentOpName returns an operation name for a component.
func SetSpanError ¶
SetSpanError sets the error status on the span.
func SetSpanSuccess ¶
SetSpanSuccess sets the success status on the span.
func Setup ¶
func Setup(name string, res *resource.Resource, exp sdktrace.SpanExporter) *sdktrace.TracerProvider
Setup TraceProvider with the given resource and exporter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.