Help us shape the future of Go! Take the 2026 Go Developer Survey

xrayserver

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 17 Imported by: 6

Documentation

Overview

Package xrayserver provides the diagnostic hooks for a server using ADOT collector.

Index

Constants

This section is empty.

Variables

MetricsSet is a Wire provider set that provides the open telemetry metrics provider given the exporter.

Set is a Wire provider set that provides the diagnostic hooks for *server.Server using aws specific formats outlined here https://aws-otel.github.io/docs/getting-started/go-sdk/manual-instr.

TracesSet is a Wire provider set that provides the open telemetry trace provider given the exporter.

Functions

func NewMeterProvider added in v0.43.0

func NewMeterProvider(ctx context.Context, reader sdkmetric.Reader) (*sdkmetric.MeterProvider, func(), error)

NewMeterProvider returns a new metric provider for our service to utilise.

The second return value is a Wire cleanup function that calls Close on the provider.

func NewMetricsReader added in v0.43.0

func NewMetricsReader(ctx context.Context) (sdkmetric.Reader, error)

func NewRequestLogger

func NewRequestLogger() *requestlog.NCSALogger

NewRequestLogger returns a request logger that sends entries to stdout.

func NewResource added in v0.43.0

func NewResource(ctx context.Context) (*resource.Resource, error)

func NewTextMapPropagator added in v0.43.0

func NewTextMapPropagator() *xray.Propagator

func NewTraceExporter added in v0.43.0

func NewTraceExporter(ctx context.Context) (sdktrace.SpanExporter, error)

func NewTraceProvider added in v0.43.0

func NewTraceProvider(ctx context.Context, exp sdktrace.SpanExporter, sampler sdktrace.Sampler) (*sdktrace.TracerProvider, func(), error)

NewTraceProvider returns a new trace provider for our service to utilise.

The second return value is a Wire cleanup function that calls Close on the provider.

func NewTraceSampler added in v0.43.0

func NewTraceSampler() sdktrace.Sampler

NewTraceSampler returns a new OpenTelemetry trace sampler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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