traceservice

package
v0.44.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 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