Documentation ¶
Index ¶
- Constants
- func NewResource(attrs ...attribute.KeyValue) *resource.Resource
- func SetupTracing(ctx context.Context, rcs *resource.Resource, opts ...otlptracegrpc.Option) (shutdown func(), err error)
- func WithHoneCombEndpoint() otlptracegrpc.Option
- func WithHoneyCombHeader(honeycombKey string) otlptracegrpc.Option
Constants ¶
View Source
const UnspecifiedValue = "unspecified"
UnspecifiedValue is the value used for unspecified attributes.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
NewResource create a new resource with the default attributes configured from the environment.
func SetupTracing ¶
func SetupTracing( ctx context.Context, rcs *resource.Resource, opts ...otlptracegrpc.Option, ) (shutdown func(), err error)
SetupTracing configures the global OpenTelemetry SDK to send trace data.
func WithHoneCombEndpoint ¶
func WithHoneCombEndpoint() otlptracegrpc.Option
WithHoneCombEndpoint sets the Honeycomb endpoint for the OTLP exporter.
func WithHoneyCombHeader ¶
func WithHoneyCombHeader(honeycombKey string) otlptracegrpc.Option
WithHoneyCombHeader sets the Honeycomb headers for the OTLP exporter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.