# README
messageprocessor - An implementation of messageprocessor that adds stats
Contributing
License
This project is licensed under Apache 2.0. See LICENSE.txt for details.
Contributing Agreement
Atlassian requires signing a contributor's agreement before we can accept a patch. If you are an individual you can fill out the individual CLA. If you are contributing on behalf of your company then please fill out the corporate CLA.
# Functions
NewComponent populates default values.
NewStatBinder returns a function that wraps a `transport.Decorator` in a `StatTransport` `transport.Decorator`.
NewStatMessageProcessor returns a function that wraps a `messageprocessor.MessageProcessor` in a `StatMessageProcessor` `messageprocessor.MessageProcessor`.
# Structs
StatBinder is a `MessageProcessor` decorator that injects an `xstats.XStater` into the `context.Context` of the given `context`.
StatMessageProcessor is wrapper around MessageProcessor to capture and emit Kinesis related stats.
StatMessageProcessorComponent implements the settings.Component interface.
StatMessageProcessorConfig is the config for creating a StatMessageProcessor.