api: google.golang.org/api/transport/http/internal/propagation Index | Files

package propagation

import "google.golang.org/api/transport/http/internal/propagation"

Package propagation implements X-Cloud-Trace-Context header propagation used by Google Cloud products.

Index

Package Files

http.go

type HTTPFormat Uses

type HTTPFormat struct{}

HTTPFormat implements propagation.HTTPFormat to propagate traces in HTTP headers for Google Cloud Platform and Stackdriver Trace.

func (*HTTPFormat) SpanContextFromRequest Uses

func (f *HTTPFormat) SpanContextFromRequest(req *http.Request) (sc trace.SpanContext, ok bool)

SpanContextFromRequest extracts a Stackdriver Trace span context from incoming requests.

func (*HTTPFormat) SpanContextToRequest Uses

func (f *HTTPFormat) SpanContextToRequest(sc trace.SpanContext, req *http.Request)

SpanContextToRequest modifies the given request to include a Stackdriver Trace header.

Package propagation imports 8 packages (graph) and is imported by 3 packages. Updated 2019-07-13. Refresh now. Tools for package owners.