diff --git a/CHANGELOG.md b/CHANGELOG.md index a850b99..eb7caec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added +- [#xxx]() Every event has a unique id set, so it can be filtered in logs. + The `kafkaIngester`, `tailer` and `envoyAccessLogServer` modules + has new config option `eventIdMetadataKey` to use value of this metadata key as the unique identifier. + (Mostly should be used with a trace id for example). + +### Changed +- _Internal:_ Event structs `Raw` and `Slo` has been abstracted into interfaces. + ## [v6.9.0] 2021-07-14 ### Added - [#60](https://github.com/seznam/slo-exporter/pull/60) New module eventMetadataRenamer diff --git a/docs/modules/envoy_access_log_server.md b/docs/modules/envoy_access_log_server.md index 2fb1659..98168d0 100644 --- a/docs/modules/envoy_access_log_server.md +++ b/docs/modules/envoy_access_log_server.md @@ -131,4 +131,6 @@ Please note that some of the keys may not be present | address: ":18090" # gracefulShutdownTimeout for the GRPC server. Please note also the existence of 'maximumGracefulShutdownDuration' global config option which is effectively an upper boundary of here-specified timeout value. gracefulShutdownTimeout: "5s" +# eventIdMetadataKey it's value will be used as a unique id for the generated event if present. +eventIdMetadataKey: ``` diff --git a/docs/modules/kafka_ingester.md b/docs/modules/kafka_ingester.md index b08e4c1..f876198 100644 --- a/docs/modules/kafka_ingester.md +++ b/docs/modules/kafka_ingester.md @@ -28,6 +28,8 @@ retentionTime: # fallbackStartOffset determines from whence the consumer group should begin consuming when it finds a partition without a committed offset. # Default: FirstOffset fallbackStartOffset: +# eventIdMetadataKey it's value will be used as a unique id for the generated event if present. +eventIdMetadataKey: ``` diff --git a/docs/modules/tailer.md b/docs/modules/tailer.md index facf6e0..b3b498e 100644 --- a/docs/modules/tailer.md +++ b/docs/modules/tailer.md @@ -35,5 +35,7 @@ positionPersistenceInterval: "2s" loglineParseRegexp: '^(?P[A-Fa-f0-9.:]{4,50}) \S+ \S+ \[(?P