Documentation ¶
Overview ¶
Package tracing contains middlewares that will add spans to existing traces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StateRepositoryMiddleware ¶
func StateRepositoryMiddleware(tracer trace.Tracer, repo twins.StateRepository) twins.StateRepository
StateRepositoryMiddleware tracks request and their latency, and adds spans to context.
func TwinCacheMiddleware ¶
TwinCacheMiddleware tracks request and their latency, and adds spans to context.
func TwinRepositoryMiddleware ¶
func TwinRepositoryMiddleware(tracer trace.Tracer, repo twins.TwinRepository) twins.TwinRepository
TwinRepositoryMiddleware tracks request and their latency, and adds spans to context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.