opentracing

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

micro-opentracing

Open tracing wrappers for go-micro, import form go-plugins, so don't need to import go-plugins which dependent on too much modules.

Documentation

Overview

Package opentracing provides wrappers for OpenTracing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCallWrapper

func NewCallWrapper(ot opentracing.Tracer) client.CallWrapper

NewCallWrapper accepts an opentracing Tracer and returns a Call Wrapper

func NewClientWrapper

func NewClientWrapper(ot opentracing.Tracer) client.Wrapper

NewClientWrapper accepts an open tracing Trace and returns a Client Wrapper

func NewHandlerWrapper

func NewHandlerWrapper(ot opentracing.Tracer) server.HandlerWrapper

NewHandlerWrapper accepts an opentracing Tracer and returns a Handler Wrapper

func NewSubscriberWrapper

func NewSubscriberWrapper(ot opentracing.Tracer) server.SubscriberWrapper

NewSubscriberWrapper accepts an opentracing Tracer and returns a Subscriber Wrapper

func StartSpan added in v1.1.0

StartSpan returns a new span with the given operation name and options.

func StartSpanFromContext

func StartSpanFromContext(ctx context.Context, tracer opentracing.Tracer, name string, opts ...opentracing.StartSpanOption) (context.Context, opentracing.Span, error)

StartSpanFromContext returns a new span with the given operation name and options. If a span is found in the context, it will be used as the parent of the resulting span.

Types

This section is empty.

Jump to

Keyboard shortcuts

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