Documentation ¶
Index ¶
- Constants
- Variables
- func NewTracerProvider(ctx context.Context, version *model.VersionInfo, service string, ...) (trace.TracerProvider, error)
- func WithQueryDepthAttribute(depth int) attribute.KeyValue
- func WithQueryIDAttribute(id string) attribute.KeyValue
- func WithQueryLabelsAttribute(labels ...string) attribute.KeyValue
- func WithQueryLimitAttribute(limit int) attribute.KeyValue
- func WithQueryOffsetAttribute(offset int) attribute.KeyValue
- func WithQueryPatchLenAttribute(length int) attribute.KeyValue
- func WithQueryResultLenAttribute(length int) attribute.KeyValue
- func WithSystemHealthStatusAttribute(status model.HealthStatus) attribute.KeyValue
- func WithUserEmailAttribute(email string) attribute.KeyValue
- type Tracer
Constants ¶
View Source
const ( AttributeUserEmail = "user.email" AttributeQueryLabels = "query.labels" AttributeQueryID = "query.id" AttributeQueryLimit = "query.limit" AttributeQueryOffset = "query.offset" AttributeQueryDepth = "query.depth" AttributeQueryPatchLen = "query.patch_length" AttributeQueryResultLen = "query.result_length" AttributeSystemHealthStatus = "system.health.status" )
Variables ¶
View Source
var (
ErrNoTracer = errors.New("no tracer") // the tracer is missing
)
Functions ¶
func NewTracerProvider ¶
func NewTracerProvider(ctx context.Context, version *model.VersionInfo, service string, cfg *config.TracingConfig) (trace.TracerProvider, error)
NewTracerProvider creates a new tracer provider.
func WithQueryDepthAttribute ¶
WithQueryDepthAttribute adds the query depth to the span.
func WithQueryIDAttribute ¶
WithQueryIDAttribute adds the inner of the updated entity to the span.
func WithQueryLabelsAttribute ¶
WithQueryLabelsAttribute adds the node labels to the span.
func WithQueryLimitAttribute ¶
WithQueryLimitAttribute adds the query limit to the span.
func WithQueryOffsetAttribute ¶
WithQueryOffsetAttribute adds the query offset to the span.
func WithQueryPatchLenAttribute ¶
WithQueryPatchLenAttribute adds the query patch to the span.
func WithQueryResultLenAttribute ¶
WithQueryResultLenAttribute adds the query result length to the span.
func WithSystemHealthStatusAttribute ¶
func WithSystemHealthStatusAttribute(status model.HealthStatus) attribute.KeyValue
WithSystemHealthStatusAttribute adds the system health status to the span.
func WithUserEmailAttribute ¶
WithUserEmailAttribute adds the user email to the span.
Types ¶
Click to show internal directories.
Click to hide internal directories.