tracing

package
v0.0.391 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

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 CreateResource(ctx context.Context, serverInfo *types.ServerInfo, detectors []resource.Detector) (*resource.Resource, error)

func MustTracer added in v0.0.291

func Prepare

func Prepare(ctx context.Context, deps ExtensionDeps) error

func ProvideMeterProvider added in v0.0.304

func ProvideMeterProvider(ctx context.Context, _ *NoArgs, deps ExtensionDeps) (*metric.MeterProvider, error)

func Tracer added in v0.0.291

Types

type DeferredTracerProvider

type DeferredTracerProvider interface {
	GetTracerProvider() (t.TracerProvider, 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)

func (Detector) Register added in v0.0.303

func (e Detector) Register(detector resource.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)

func (Exporter) Register

func (e Exporter) Register(exp trace.SpanExporter) error

func (Exporter) RegisterMetrics added in v0.0.304

func (e Exporter) RegisterMetrics(exp metric.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, options ...otelhttp.Option) http.RoundTripper

type NoArgs

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

func (*NoArgs) Descriptor deprecated

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

Deprecated: Use NoArgs.ProtoReflect.Descriptor instead.

func (*NoArgs) ProtoMessage

func (*NoArgs) ProtoMessage()

func (*NoArgs) ProtoReflect

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

func (*NoArgs) Reset

func (x *NoArgs) Reset()

func (*NoArgs) String

func (x *NoArgs) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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