Documentation ¶
Index ¶
- func AddAttributesToSpan(span trace.Span, attributes map[string]string)
- func CloseSpanWithCOAResponse(span trace.Span, resp v1alpha2.COAResponse) v1alpha2.COAResponse
- func CloseSpanWithError(span trace.Span, err *error)
- func GetFunctionName() string
- func GetTraceSamplingRate(rate string) float64
- func GetVendor(apiPath string) (string, string)
- func IsTracingEnabled(rate string) bool
- func PropagateSpanContextToHttpRequestHeader(req *http.Request)
- func SpanFromContext(ctx context.Context) *trace.Span
- func SpanToFastHTTPContext(ctx *fasthttp.RequestCtx, span *trace.Span)
- func UpdateSpanStatusFromCOAResponse(span trace.Span, resp v1alpha2.COAResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseSpanWithCOAResponse ¶
func CloseSpanWithCOAResponse(span trace.Span, resp v1alpha2.COAResponse) v1alpha2.COAResponse
func CloseSpanWithError ¶
func GetFunctionName ¶
func GetFunctionName() string
GetFunctionName returns the name of the function that called it
func GetTraceSamplingRate ¶
func IsTracingEnabled ¶
func SpanToFastHTTPContext ¶
func SpanToFastHTTPContext(ctx *fasthttp.RequestCtx, span *trace.Span)
func UpdateSpanStatusFromCOAResponse ¶
func UpdateSpanStatusFromCOAResponse(span trace.Span, resp v1alpha2.COAResponse)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.