Skip to content

feat(transform): Add Metrics Bytes Transform#142

Merged
jshlbrd merged 3 commits intomainfrom
jshlbrd/feat/metrics-bytes
Mar 7, 2024
Merged

feat(transform): Add Metrics Bytes Transform#142
jshlbrd merged 3 commits intomainfrom
jshlbrd/feat/metrics-bytes

Conversation

@jshlbrd
Copy link
Contributor

@jshlbrd jshlbrd commented Mar 7, 2024

Description

  • Adds a transform for emitting a metric that contains the amount of bytes passed through the application

Motivation and Context

It's not unusual for a data processing system to provide metrics on both the count and volume of messages processed; since a Metrics Count transform exists, this adds the complementary metric. This is useful for anyone using AWS or external services that don't readily make this information available.

How Has This Been Tested?

This can be integration tested locally:

make build-config
make build-go
./examples/cmd/client/file/substation/substation -config examples/config/transform/utility/message_bytes/config.json -file examples/config/transform/utility/message_bytes/data.jsonl

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@jshlbrd jshlbrd marked this pull request as ready for review March 7, 2024 15:00
@jshlbrd jshlbrd requested a review from a team as a code owner March 7, 2024 15:00
@jshlbrd jshlbrd merged commit d708580 into main Mar 7, 2024
@jshlbrd jshlbrd deleted the jshlbrd/feat/metrics-bytes branch March 7, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants