honeycomb

package
v0.0.364 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Package__e1uscp = &core.Package{
		PackageName:         "namespacelabs.dev/foundation/universe/monitoring/honeycomb",
		PackageDependencies: []string{"namespacelabs.dev/foundation/std/monitoring/tracing"},
	}

	Provider__e1uscp = core.Provider{
		Package:     Package__e1uscp,
		Instantiate: makeDeps__e1uscp,
	}

	Initializers__e1uscp = []*core.Initializer{
		{
			Package: Package__e1uscp,
			Before:  []string{"namespacelabs.dev/foundation/std/monitoring/tracing"},
			Do: func(ctx context.Context, di core.Dependencies) error {
				return di.Instantiate(ctx, Provider__e1uscp, func(ctx context.Context, v interface{}) error {
					return Prepare(ctx, v.(ExtensionDeps))
				})
			},
		},
	}
)

Functions

func Create added in v0.0.269

func Create(ctx context.Context, key string) (*otlptrace.Exporter, error)

func CreateMetricsExporter added in v0.0.304

func CreateMetricsExporter(ctx context.Context, key, dataSet string) (*otlpmetricgrpc.Exporter, error)

func Prepare

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

Types

type ExtensionDeps

type ExtensionDeps struct {
	OpenTelemetry tracing.Exporter
}

Dependencies that are instantiated once for the lifetime of the extension.

type HoneycombConfiguration added in v0.0.323

type HoneycombConfiguration struct {
	Endpoint string
	Headers  map[string]string
}

func Configuration added in v0.0.323

func Configuration() (HoneycombConfiguration, bool)

Jump to

Keyboard shortcuts

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