Documentation
¶
Index ¶
- Constants
- func CMDSpan(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
- func CreateLinkSpan(ctx context.Context, res *http.Response)
- func GetTracer() trace.Tracer
- func InitTraceProvider(ctx context.Context, appName string) (*sdktrace.TracerProvider, error)
- func InitTraceProviderWithoutApp(ctx context.Context) (*sdktrace.TracerProvider, error)
- func NewTransport(inner http.RoundTripper) http.RoundTripper
- func RecordCancellation(ctx context.Context, span trace.Span) []attribute.KeyValue
- func RecordError(ctx context.Context, span trace.Span, err error, description string)
- func RecordErrorEvent(ctx context.Context, span trace.Span, err error, opts ...trace.EventOption)
- func SpanContextFromHeaders(res *http.Response) trace.SpanContext
- type InstrumentedTransport
Constants ¶
View Source
const ( HeaderFlyTraceId = "fly-trace-id" HeaderFlySpanId = "fly-span-id" )
Variables ¶
This section is empty.
Functions ¶
func CreateLinkSpan ¶ added in v0.1.148
func InitTraceProvider ¶
func InitTraceProviderWithoutApp ¶ added in v0.2.37
func InitTraceProviderWithoutApp(ctx context.Context) (*sdktrace.TracerProvider, error)
func NewTransport ¶
func NewTransport(inner http.RoundTripper) http.RoundTripper
func RecordCancellation ¶ added in v0.4.108
RecordCancellation annotates a span without changing its status. Call before cleanup, using the operation's context (which may be a child of the span's).
func RecordError ¶
func RecordErrorEvent ¶ added in v0.4.108
RecordErrorEvent records the original error along with the cancellation cause at the point the error is observed. Causes are metadata, not additional errors: expected cleanup must not turn a successful operation into a failed span.
func SpanContextFromHeaders ¶ added in v0.1.148
func SpanContextFromHeaders(res *http.Response) trace.SpanContext
Types ¶
type InstrumentedTransport ¶
type InstrumentedTransport struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.