Documentation
¶
Overview ¶
Package tracing contains middlewares that will add spans to existing traces.
Package tracing contains middlewares that will add spans to existing traces.
Index ¶
- func GroupCacheMiddleware(tracer opentracing.Tracer, cache things.GroupCache) things.GroupCache
- func GroupMembershipsRepositoryMiddleware(tracer opentracing.Tracer, repo things.GroupMembershipsRepository) things.GroupMembershipsRepository
- func GroupRepositoryMiddleware(tracer opentracing.Tracer, repo things.GroupRepository) things.GroupRepository
- func ProfileCacheMiddleware(tracer opentracing.Tracer, cache things.ProfileCache) things.ProfileCache
- func ProfileRepositoryMiddleware(tracer opentracing.Tracer, repo things.ProfileRepository) things.ProfileRepository
- func ThingCacheMiddleware(tracer opentracing.Tracer, cache things.ThingCache) things.ThingCache
- func ThingRepositoryMiddleware(tracer opentracing.Tracer, repo things.ThingRepository) things.ThingRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupCacheMiddleware ¶ added in v0.25.0
func GroupCacheMiddleware(tracer opentracing.Tracer, cache things.GroupCache) things.GroupCache
GroupCacheMiddleware tracks request and their latency, and adds spans to context.
func GroupMembershipsRepositoryMiddleware ¶ added in v0.29.0
func GroupMembershipsRepositoryMiddleware(tracer opentracing.Tracer, repo things.GroupMembershipsRepository) things.GroupMembershipsRepository
GroupMembershipsRepositoryMiddleware tracks requests and their latency, and adds spans to context.
func GroupRepositoryMiddleware ¶
func GroupRepositoryMiddleware(tracer opentracing.Tracer, repo things.GroupRepository) things.GroupRepository
GroupRepositoryMiddleware tracks request and their latency, and adds spans to context.
func ProfileCacheMiddleware ¶ added in v0.24.0
func ProfileCacheMiddleware(tracer opentracing.Tracer, cache things.ProfileCache) things.ProfileCache
ProfileCacheMiddleware tracks request and their latency, and adds spans to context.
func ProfileRepositoryMiddleware ¶ added in v0.24.0
func ProfileRepositoryMiddleware(tracer opentracing.Tracer, repo things.ProfileRepository) things.ProfileRepository
ProfileRepositoryMiddleware tracks request and their latency, and adds spans to context.
func ThingCacheMiddleware ¶
func ThingCacheMiddleware(tracer opentracing.Tracer, cache things.ThingCache) things.ThingCache
ThingCacheMiddleware tracks request and their latency, and adds spans to context.
func ThingRepositoryMiddleware ¶
func ThingRepositoryMiddleware(tracer opentracing.Tracer, repo things.ThingRepository) things.ThingRepository
ThingRepositoryMiddleware tracks request and their latency, and adds spans to context.
Types ¶
This section is empty.