grpctrace

package
v1.20210201.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package grpctrace provides tracing helpers for grpc servers and clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tracer

Tracer returns a tracer.

Types

type MetadataReaderWriter

type MetadataReaderWriter struct {
	metadata.MD
}

MetadataReaderWriter satisfies both the opentracing.TextMapReader and opentracing.TextMapWriter interfaces.

func (MetadataReaderWriter) ForeachKey

func (w MetadataReaderWriter) ForeachKey(handler func(key, val string) error) error

ForeachKey does something for each key.

func (MetadataReaderWriter) Set

func (w MetadataReaderWriter) Set(key, val string)

Set sets a key a value.

type TraceFinisher

type TraceFinisher struct {
	// contains filtered or unexported fields
}

TraceFinisher finishes traces.

func (TraceFinisher) Finish

func (tf TraceFinisher) Finish(err error)

Finish implements TraceFinisher.

Jump to

Keyboard shortcuts

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