watermillext

package module
v0.0.0-...-e9a118c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 11 Imported by: 1

README

Watermill Extension

watermill.io extensions and middleware

OpenTelemetryMiddleware

OpenTelemetry middlewre to track metrics and inject tracinf spans into message context.

Metrics tracked:

Metric Type
watermill_kafka_subscriber_offset counter
watermill_kafka_subscriber_lag_ms histogram
watermill_kafka_publish_ms histogram
watermill_processing_ms histogram

KafkaDeadlineMiddleware

Middleware to ignore message from kafka older then duration specified.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KafkaDeadlineMiddleware

func KafkaDeadlineMiddleware(fromPublish time.Duration) func(message.HandlerFunc) message.HandlerFunc

KafkaDeadlineMiddleware short-circuits message processing without an error, if message was in kafka for longer, then duration provided

func OpenTelemetryMiddleware

func OpenTelemetryMiddleware(h message.HandlerFunc) message.HandlerFunc

OpenTelemetryMiddleware collects metrics and injects tracing data into context If trace propagation is configured will extract or inject tracing data into metadata for watermill to pass it on the wire, If metrics are enabled collects them

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL