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

traceservice

package
v0.60.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Enabled configures whether tracing is enabled.
	Enabled bool `yaml:"enabled"`
	// ServiceName represents the name of service.
	ServiceName string `yaml:"serviceName,omitempty"`
	// Zipkin represents zipkin options.
	Zipkin *ZipkinOptions `yaml:"zipkin,omitempty"`
}

Options represents the trace options.

type Service

type Service struct {
	Options *Options
}

Service implements the hosting.Service interface for the tracer.

func (*Service) Name

func (s *Service) Name() string

Name gets the service name.

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Run runs the tracer service.

type ZipkinOptions

type ZipkinOptions struct {
	// URL represents the url of zipkin endpoint.
	URL string `yaml:"url"`
}

ZipkinOptions represents zipkin trace provider options.

Jump to

Keyboard shortcuts

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