xraytrace

package
v0.0.0-...-90deddd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Xray is the xray tracer.

Functions

This section is empty.

Types

type Tracer

type Tracer struct{}

Tracer is the reflow tracer implementation for xray.

func (Tracer) CopyTraceContext

func (Tracer) CopyTraceContext(src, dst context.Context) context.Context

CopyTraceContext copies the trace context from src to dst.

func (Tracer) Emit

Emit emits a trace event.

func (Tracer) Flush

func (Tracer) Flush()

Flush is a no-op for the xray tracer implementation.

func (Tracer) Help

func (Tracer) Help() string

Help implements infra.Provider

func (Tracer) ReadHTTPContext

func (Tracer) ReadHTTPContext(ctx context.Context, h http.Header) context.Context

ReadHTTPContext reads the trace context from HTTP headers and returns a new context with the trace context.

func (Tracer) URL

func (Tracer) URL(ctx context.Context) string

URL returns the trace URL.

func (Tracer) WriteHTTPContext

func (Tracer) WriteHTTPContext(ctx context.Context, h *http.Header)

WriteHTTPContext writes the trace context to the HTTP header.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL