traceio

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AppTraceKey          = attribute.Key("serviceakasar.app")
	DeploymentIdTraceKey = attribute.Key("serviceakasar.deployment_id")
	AkasaletIdTraceKey   = attribute.Key("serviceakasar.akasalet_id")
)

Variables

This section is empty.

Functions

func AkasaletId

func AkasaletId(akasaletId string) attribute.KeyValue

func App

func App(app string) attribute.KeyValue

func DeploymentId

func DeploymentId(deploymentId string) attribute.KeyValue

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer writes a sequence of trace spans to a specified export function.

func NewWriter

func NewWriter(export func(spans *protos.TraceSpans) error) *Writer

func (*Writer) ExportSpans

func (w *Writer) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error

func (*Writer) ExportSpansProto

func (w *Writer) ExportSpansProto(msg *protos.TraceSpans) error

func (*Writer) Shutdown

func (w *Writer) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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