Documentation ¶
Index ¶
- func ContextWithParentSpan(parent context.Context, span trace.Span) context.Context
- func CopyFromParentSpanAttribute(ctx context.Context, span trace.Span, attributeName string, ...)
- func CopyFromParentSpanAttributeIfNotSet(ctx context.Context, span trace.Span, attributeName string, ...)
- func GetParentSpanAttribute(ctx context.Context, parentAttributeName string) attribute.KeyValue
- func GetParentSpanContext(span trace.Span) trace.SpanContext
- func GetSpanAttribute(span trace.Span, attributeName string) attribute.KeyValue
- func GetSpanAttributeFromCurrentContext(ctx context.Context, attributeName string) attribute.KeyValue
- func GrpcTraceErrFromSpan(span trace.Span, err error) error
- func GrpcTraceErrFromSpanWithCode(span trace.Span, err error, code int) error
- func HttpTraceStatusFromContext(ctx context.Context, err error) error
- func HttpTraceStatusFromSpan(span trace.Span, err error) error
- func HttpTraceStatusFromSpanWithCode(span trace.Span, err error, code int) error
- func MapsToAttributes(maps map[string]interface{}) []attribute.KeyValue
- func MetadataToSet(meta metadata.Metadata) attribute.Set
- func ParentSpanFromContext(ctx context.Context) trace.Span
- func TraceErrStatusFromContext(ctx context.Context, err error) error
- func TraceErrStatusFromSpan(span trace.Span, err error) error
- func TraceStatusFromContext(ctx context.Context, err error) error
- func TraceStatusFromSpan(span trace.Span, err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithParentSpan ¶
func GetParentSpanAttribute ¶
func GetParentSpanContext ¶
func GetParentSpanContext(span trace.Span) trace.SpanContext
func GetSpanAttribute ¶
func GrpcTraceErrFromSpan ¶
GrpcTraceErrFromSpan setting span with status error with error message
func GrpcTraceErrFromSpanWithCode ¶
GrpcTraceErrFromSpanWithCode setting span with status error with error message
func HttpTraceStatusFromContext ¶
HttpTraceStatusFromContext create an error span if we have an error and a successful span when error is nil
func HttpTraceStatusFromSpan ¶
HttpTraceStatusFromSpan create an error span if we have an error and a successful span when error is nil
func HttpTraceStatusFromSpanWithCode ¶
HttpTraceStatusFromSpanWithCode create an error span with specific status code if we have an error and a successful span when error is nil with a specific status
func MapsToAttributes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.