Documentation ¶
Index ¶
- Variables
- func CreateProvider(ctx context.Context, serverInfo *types.ServerInfo, ...) (t.TracerProvider, core.CtxCloseable, error)
- func CreateResource(ctx context.Context, serverInfo *types.ServerInfo, ...) (*resource.Resource, error)
- func MustTracer(pkg *core.Package, p DeferredTracerProvider) oteltrace.Tracer
- func Prepare(ctx context.Context, deps ExtensionDeps) error
- func ProvideMeterProvider(ctx context.Context, _ *NoArgs, deps ExtensionDeps) (*metric.MeterProvider, error)
- func Tracer(pkg *core.Package, p DeferredTracerProvider) (oteltrace.Tracer, error)
- type DeferredTracerProvider
- type Detector
- type DetectorArgs
- type Exporter
- type ExporterArgs
- type ExtensionDeps
- type HttpClientProvider
- type NoArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Package__70o2mm = &core.Package{ PackageName: "namespacelabs.dev/foundation/std/monitoring/tracing", } Provider__70o2mm = core.Provider{ Package: Package__70o2mm, Instantiate: makeDeps__70o2mm, } Initializers__70o2mm = []*core.Initializer{ { Package: Package__70o2mm, Do: func(ctx context.Context, di core.Dependencies) error { return di.Instantiate(ctx, Provider__70o2mm, func(ctx context.Context, v interface{}) error { return Prepare(ctx, v.(ExtensionDeps)) }) }, }, } )
View Source
var File_std_monitoring_tracing_types_proto protoreflect.FileDescriptor
Functions ¶
func CreateProvider ¶ added in v0.0.269
func CreateProvider(ctx context.Context, serverInfo *types.ServerInfo, exporters []trace.SpanExporter, detectors []resource.Detector) (t.TracerProvider, core.CtxCloseable, error)
func CreateResource ¶ added in v0.0.304
func MustTracer ¶ added in v0.0.291
func MustTracer(pkg *core.Package, p DeferredTracerProvider) oteltrace.Tracer
func ProvideMeterProvider ¶ added in v0.0.304
func ProvideMeterProvider(ctx context.Context, _ *NoArgs, deps ExtensionDeps) (*metric.MeterProvider, error)
Types ¶
type DeferredTracerProvider ¶
type DeferredTracerProvider interface {
GetTracerProvider() (t.TracerProvider, error)
}
func ProvideTracerProvider ¶
func ProvideTracerProvider(context.Context, *NoArgs, ExtensionDeps) (DeferredTracerProvider, error)
type Detector ¶ added in v0.0.303
type Detector struct {
// contains filtered or unexported fields
}
func ProvideDetector ¶ added in v0.0.303
func ProvideDetector(_ context.Context, args *DetectorArgs, _ ExtensionDeps) (Detector, error)
type DetectorArgs ¶ added in v0.0.303
type DetectorArgs struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DetectorArgs) Descriptor
deprecated
added in
v0.0.303
func (*DetectorArgs) Descriptor() ([]byte, []int)
Deprecated: Use DetectorArgs.ProtoReflect.Descriptor instead.
func (*DetectorArgs) GetName ¶ added in v0.0.303
func (x *DetectorArgs) GetName() string
func (*DetectorArgs) ProtoMessage ¶ added in v0.0.303
func (*DetectorArgs) ProtoMessage()
func (*DetectorArgs) ProtoReflect ¶ added in v0.0.303
func (x *DetectorArgs) ProtoReflect() protoreflect.Message
func (*DetectorArgs) Reset ¶ added in v0.0.303
func (x *DetectorArgs) Reset()
func (*DetectorArgs) String ¶ added in v0.0.303
func (x *DetectorArgs) String() string
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func ProvideExporter ¶
func ProvideExporter(_ context.Context, args *ExporterArgs, _ ExtensionDeps) (Exporter, error)
type ExporterArgs ¶
type ExporterArgs struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ExporterArgs) Descriptor
deprecated
func (*ExporterArgs) Descriptor() ([]byte, []int)
Deprecated: Use ExporterArgs.ProtoReflect.Descriptor instead.
func (*ExporterArgs) GetName ¶
func (x *ExporterArgs) GetName() string
func (*ExporterArgs) ProtoMessage ¶
func (*ExporterArgs) ProtoMessage()
func (*ExporterArgs) ProtoReflect ¶
func (x *ExporterArgs) ProtoReflect() protoreflect.Message
func (*ExporterArgs) Reset ¶
func (x *ExporterArgs) Reset()
func (*ExporterArgs) String ¶
func (x *ExporterArgs) String() string
type ExtensionDeps ¶
type ExtensionDeps struct { Interceptors interceptors.Registration Middleware middleware.Middleware ServerInfo *types.ServerInfo }
Dependencies that are instantiated once for the lifetime of the extension.
type HttpClientProvider ¶
type HttpClientProvider struct {
// contains filtered or unexported fields
}
func ProvideHttpClientProvider ¶
func ProvideHttpClientProvider(ctx context.Context, _ *NoArgs, deps ExtensionDeps) (HttpClientProvider, error)
func (HttpClientProvider) New ¶ added in v0.0.93
func (hp HttpClientProvider) New() *http.Client
func (HttpClientProvider) Wrap ¶
func (hp HttpClientProvider) Wrap(client *http.Client) *http.Client
func (HttpClientProvider) WrapTransport ¶ added in v0.0.323
func (hp HttpClientProvider) WrapTransport(base http.RoundTripper) http.RoundTripper
type NoArgs ¶
type NoArgs struct {
// contains filtered or unexported fields
}
func (*NoArgs) Descriptor
deprecated
func (*NoArgs) ProtoMessage ¶
func (*NoArgs) ProtoMessage()
func (*NoArgs) ProtoReflect ¶
func (x *NoArgs) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.