Documentation ¶
Index ¶
- Constants
- func TestTracer() trace.Tracer
- type ReadSpan
- func (s *ReadSpan) Attributes() []attribute.KeyValue
- func (s *ReadSpan) ChildSpanCount() int
- func (s *ReadSpan) DroppedAttributes() int
- func (s *ReadSpan) DroppedEvents() int
- func (s *ReadSpan) DroppedLinks() int
- func (s *ReadSpan) EndTime() time.Time
- func (s *ReadSpan) Events() []sdk.Event
- func (s *ReadSpan) InstrumentationLibrary() instrumentation.Scope
- func (s *ReadSpan) Links() []sdk.Link
- func (s *ReadSpan) Name() string
- func (s *ReadSpan) Parent() trace.SpanContext
- func (s *ReadSpan) Resource() *resource.Resource
- func (s *ReadSpan) SpanContext() trace.SpanContext
- func (s *ReadSpan) SpanKind() trace.SpanKind
- func (s *ReadSpan) StartTime() time.Time
- func (s *ReadSpan) Status() sdk.Status
- type Writer
Constants ¶
View Source
const ( // Trace attribute keys for various Service Weaver identifiers. These // are attached to all exported traces by the weavelet, and displayed // in the UI by the Service Weaver visualization tools (e.g., dashboard). AppNameTraceKey = attribute.Key("serviceweaver.app") VersionTraceKey = attribute.Key("serviceweaver.version") ColocationGroupNameTraceKey = attribute.Key("serviceweaver.coloc_group") GroupReplicaIDTraceKey = attribute.Key("serviceweaver.group_replica_id") )
Variables ¶
This section is empty.
Functions ¶
func TestTracer ¶
TestTracer returns a simple tracer suitable for tests.
Types ¶
type ReadSpan ¶
type ReadSpan struct { sdk.ReadOnlySpan Span *protos.Span }
ReadSpan is a wrapper around a Span that implements the sdk.ReadOnlySpan interface.
func (*ReadSpan) Attributes ¶
func (*ReadSpan) ChildSpanCount ¶
func (*ReadSpan) DroppedAttributes ¶
func (*ReadSpan) DroppedEvents ¶
func (*ReadSpan) DroppedLinks ¶
func (*ReadSpan) InstrumentationLibrary ¶
func (s *ReadSpan) InstrumentationLibrary() instrumentation.Scope
func (*ReadSpan) Parent ¶
func (s *ReadSpan) Parent() trace.SpanContext
func (*ReadSpan) SpanContext ¶
func (s *ReadSpan) SpanContext() trace.SpanContext
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
NewWriter creates a Writer that writes a sequence of trace spans to a specified export function.
func (*Writer) ExportSpans ¶
ExportSpans implements the sdk.SpanExporter interface.
Click to show internal directories.
Click to hide internal directories.