trace

package
v0.0.0-...-fb5fdcc Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_component_trace_trace_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint    string               `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	ServiceName string               `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName,omitempty"`
	Env         string               `protobuf:"bytes,3,opt,name=env,proto3" json:"env,omitempty"`
	Timeout     *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetEndpoint

func (x *Config) GetEndpoint() string

func (*Config) GetEnv

func (x *Config) GetEnv() string

func (*Config) GetServiceName

func (x *Config) GetServiceName() string

func (*Config) GetTimeout

func (x *Config) GetTimeout() *durationpb.Duration

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Tracer

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

func New

func New(config *Config, logger *zap.Logger) (*Tracer, func(), error)

func (*Tracer) Tracer

func (t *Tracer) Tracer(name string, opts ...trace.TracerOption) trace.Tracer

func (*Tracer) TracerProvider

func (t *Tracer) TracerProvider() *sdktrace.TracerProvider

Jump to

Keyboard shortcuts

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