husky

package module
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

OSS Lifecycle Build Status

Husky

A place to store translation modules to convert custom wire formats to Honeycomb formatted data structures.

IMPORTANT NOTE: most consumers of husky will probably want to use a backwards-compatible version of the opentelemetry protobufs. If this applies to you, add the following to your go.mod file:

replace go.opentelemetry.io/proto/otlp => github.com/honeycombio/opentelemetry-proto-go/otlp v0.19.0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddTelemetryAttributeFunc func(ctx context.Context, key string, value any) = nil

AddTelemetryAttributeFunc is used to provide a function that adds attributes to telemetry controlled by users of this package. For example, beeline users would use beeline.AddField and OTel users would use span.SetAttributes.

View Source
var (
	Version string = "0.28.0"
)

Functions

func AddTelemetryAttribute added in v0.27.0

func AddTelemetryAttribute(ctx context.Context, key string, value any)

AddTelemetryAttribute is used internally to set attributes using the configured SetAddAttributesFunc. This function is not intended to be used directly by consumers of this package.

func AddTelemetryAttributes added in v0.27.0

func AddTelemetryAttributes(ctx context.Context, attributes map[string]any)

AddTelemetryAttributes is used internally to set multiple attributes using the configured SetAddAttributesFunc. This function is not intended to be used directly by consumers of this package.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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