Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*tracing) error
Option represents an option which can be applied to tracing.
func WithCollectorEndpoint ¶
WithCollectorEndpoint sets the given collector endpoint.
func WithIdentity ¶
WithIdentity sets extra tracing resource/identity attributes.
func WithSamplingRatio ¶
WithSamplingRatio sets the given sampling ratio.
func WithServiceName ¶
WithServiceName sets the service name reported for tracing.
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
Span is a (wrapped open-) tracing Span.
func SpanFromContext ¶
SpanFromContext returns the current Span from the context.
func (*Span) SetAttributes ¶
SetAttributes sets attributes of the Span.
type SpanOptions ¶
type SpanOptions struct {
Options []trace.SpanStartOption
}
SpanOptions contains options for starting a Span.
type SpanStartOption ¶
type SpanStartOption func(*SpanOptions)
SpanStartOption is applied to a Span in SpanStart.
func WithAttributeMap ¶
func WithAttributeMap(attrMap map[string]interface{}) SpanStartOption
WithAttributeMap sets initial attributes of a Span from a map.
func WithAttributes ¶
func WithAttributes(attrs ...attribute.KeyValue) SpanStartOption
WithAttributes sets initial attributes of a Span.
Click to show internal directories.
Click to hide internal directories.