Documentation ¶
Index ¶
- Variables
- func InitTraceProvider(ctx context.Context, serviceName, serviceVersion string, cnf Config) (func(context.Context) error, error)
- type Config
- type Spaner
- func (s *Spaner) AddEvent(name string, options ...trace.EventOption)
- func (s *Spaner) End(opts ...trace.SpanEndOption)
- func (s *Spaner) IsRecording() bool
- func (s *Spaner) RecordError(err error, options ...trace.EventOption)
- func (s *Spaner) SetAttributes(kv ...attribute.KeyValue)
- func (s *Spaner) SetName(name string)
- func (s *Spaner) SetStatus(code codes.Code, description string)
- func (s *Spaner) SpanContext() trace.SpanContext
- func (s *Spaner) TracerProvider() trace.TracerProvider
- type Tracer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUndefindedTraceProto = fmt.Errorf("undefined trace protocol, available(http; grpc)")
)
Functions ¶
Types ¶
type Spaner ¶
type Spaner struct {
// contains filtered or unexported fields
}
func (*Spaner) End ¶
func (s *Spaner) End(opts ...trace.SpanEndOption)
func (*Spaner) IsRecording ¶
func (*Spaner) RecordError ¶
func (s *Spaner) RecordError(err error, options ...trace.EventOption)
func (*Spaner) SetAttributes ¶
func (*Spaner) SpanContext ¶
func (s *Spaner) SpanContext() trace.SpanContext
func (*Spaner) TracerProvider ¶
func (s *Spaner) TracerProvider() trace.TracerProvider
Click to show internal directories.
Click to hide internal directories.