tracing

package
v0.0.256 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 25 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 Prepare

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

Types

type DeferredTracerProvider

type DeferredTracerProvider interface {
	GetTracerProvider() (t.TracerProvider, error)
}

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

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

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