Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StartOption ¶
type StartOption func(*startOptions)
StartOption is an option for Start.
func WithAttributes ¶
func WithAttributes(attributes ...attribute.KeyValue) StartOption
WithAttributes adds the given attributes.
func WithErr ¶
func WithErr(errAddr *error) StartOption
WithErr will result in the given error being recorded on span.End() if the error is not nil, and the status being set to error.
func WithSpanName ¶
func WithSpanName(spanName string) StartOption
WithSpanName sets the span name.
The default is to use the calling function name.
func WithSpanNameSuffix ¶
func WithSpanNameSuffix(spanNameSuffix string) StartOption
WithSpanNameSuffix sets the span name suffix.
No no span name is set with WithSpanName, this adds the suffix to the default span name of the calling function name.
The default is to use the calling function name.
Click to show internal directories.
Click to hide internal directories.