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) InstrumentationScope() 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). AppTraceKey = attribute.Key("serviceweaver.app") DeploymentIdTraceKey = attribute.Key("serviceweaver.deployment_id") WeaveletIdTraceKey = attribute.Key("serviceweaver.weavelet_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) InstrumentationScope ¶ added in v0.14.0
func (s *ReadSpan) InstrumentationScope() 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.