Documentation ¶
Index ¶
- func AddMeterContext(ctx context.Context, meter metric.Meter) context.Context
- func AddTracerContext(ctx context.Context, tracer trace.Tracer) context.Context
- func LogProviderFromContext(ctx context.Context) (*sdklog.LoggerProvider, error)
- func MeterFromContext(ctx context.Context) (metric.Meter, error)
- func TracerFromContext(ctx context.Context) (trace.Tracer, error)
- type CleanupFunc
- type Config
- type DefaultResourceError
- type GrpcConnError
- type LambdaResourceError
- type LogExporterError
- type LogProviderError
- type LoggerCtxKey
- type MeterCtxKey
- type MeterError
- type MetricExporterError
- type ResourceEnvError
- type ResourceMergeError
- type SdkResourceError
- type ShutdownFuncs
- type TraceExporterError
- type TracerCtxKey
- type TracerError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMeterContext ¶
AddMeterContext adds the meter to the context
func AddTracerContext ¶
AddTracerContext adds the tracer to the context
func LogProviderFromContext ¶
func LogProviderFromContext(ctx context.Context) (*sdklog.LoggerProvider, error)
LogProviderFromContext checks the context for a logger provider. The returned value can be nil
func MeterFromContext ¶
MeterFromContext checks the context for a meter. The returned value can be nil
Types ¶
type CleanupFunc ¶
func InitProviders ¶
InitProviders initializes trace and metric providers, and adds a tracer and meter to the context
type DefaultResourceError ¶
type DefaultResourceError struct {
// contains filtered or unexported fields
}
func (DefaultResourceError) Error ¶
func (e DefaultResourceError) Error() string
type GrpcConnError ¶
type GrpcConnError struct {
// contains filtered or unexported fields
}
func (GrpcConnError) Error ¶
func (e GrpcConnError) Error() string
type LambdaResourceError ¶
type LambdaResourceError struct {
// contains filtered or unexported fields
}
func (LambdaResourceError) Error ¶
func (e LambdaResourceError) Error() string
type LogExporterError ¶
type LogExporterError struct {
// contains filtered or unexported fields
}
func (LogExporterError) Error ¶
func (e LogExporterError) Error() string
type LogProviderError ¶
type LogProviderError struct{}
func (LogProviderError) Error ¶
func (e LogProviderError) Error() string
type LoggerCtxKey ¶
type LoggerCtxKey struct{}
type MeterCtxKey ¶
type MeterCtxKey struct{}
type MeterError ¶
type MeterError struct{}
func (MeterError) Error ¶
func (e MeterError) Error() string
type MetricExporterError ¶
type MetricExporterError struct {
// contains filtered or unexported fields
}
func (MetricExporterError) Error ¶
func (e MetricExporterError) Error() string
type ResourceEnvError ¶
type ResourceEnvError struct {
// contains filtered or unexported fields
}
func (ResourceEnvError) Error ¶
func (e ResourceEnvError) Error() string
type ResourceMergeError ¶
type ResourceMergeError struct {
// contains filtered or unexported fields
}
func (ResourceMergeError) Error ¶
func (e ResourceMergeError) Error() string
type SdkResourceError ¶
type SdkResourceError struct {
// contains filtered or unexported fields
}
func (SdkResourceError) Error ¶
func (e SdkResourceError) Error() string
type ShutdownFuncs ¶
type TraceExporterError ¶
type TraceExporterError struct {
// contains filtered or unexported fields
}
func (TraceExporterError) Error ¶
func (e TraceExporterError) Error() string
type TracerCtxKey ¶
type TracerCtxKey struct{}
type TracerError ¶
type TracerError struct{}
func (TracerError) Error ¶
func (e TracerError) Error() string
Click to show internal directories.
Click to hide internal directories.