Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotCompiled = errors.New("tracing enabled but binary was built without sdkit_tracing_otel")
Functions ¶
func RegisterProvider ¶
Types ¶
type Config ¶
type Config struct {
Enabled bool `mapstructure:"enabled" yaml:"enabled"`
ServiceName string `mapstructure:"service_name" yaml:"service_name"`
Environment string `mapstructure:"environment" yaml:"environment"`
Endpoint string `mapstructure:"endpoint" yaml:"endpoint"`
Insecure bool `mapstructure:"insecure" yaml:"insecure"`
SampleRatio float64 `mapstructure:"sample_ratio" yaml:"sample_ratio"`
Strict bool `mapstructure:"strict" yaml:"strict"`
Timeout time.Duration `mapstructure:"timeout" yaml:"timeout"`
}
func DefaultConfig ¶
func DefaultConfig() Config
func NormalizeConfig ¶
type Span ¶
type Span interface {
End()
IsRecording() bool
RecordError(error)
SetStatus(StatusCode, string)
SetAttributes(...Attr)
TraceID() string
SpanID() string
}
func StartSpanWithOptions ¶
type SpanOptions ¶
type StatusCode ¶
type StatusCode string
const ( StatusUnset StatusCode = "" StatusOK StatusCode = "ok" StatusError StatusCode = "error" )
Click to show internal directories.
Click to hide internal directories.