package
0.0.0-20211028080628-e2786a622600
Repository: https://github.com/sourcegraph/appdash.git
Documentation: pkg.go.dev
# Functions
GetSpanID returns the SpanID for the current request, based on the values in the HTTP headers.
Middleware creates a new http.Handler middleware (negroni-compliant) that records incoming HTTP requests to the collector c as "HTTPServer"-schema events.
NewClientEvent returns an event which records various aspects of an HTTP request.
NewServerEvent returns an event which records various aspects of an HTTP response.
SetSpanIDHeader sets the Span-ID header.
SpanID returns the SpanID set for r by httptrace middleware.
SpanIDFromContext returns the SpanID set for the request context ctx by httptrace middleware.
# Constants
HeaderParentSpanID is the name of the HTTP header by which the parent trace and span IDs are passed along.
HeaderSpanID is the name of the HTTP header by which the trace and span IDs are passed along.
# Variables
RedactedHeaders is a slice of header names whose values should be entirely redacted from logs.
# Structs
ClientEvent records an HTTP client request event.
MiddlewareConfig configures the HTTP tracing middleware.
RequestInfo describes an HTTP request.
ResponseInfo describes an HTTP response.
ServerEvent records an HTTP server request handling event.
Transport is an HTTP transport that adds appdash span ID headers to requests so that downstream operations are associated with the same trace.