v2.0.0
This release is concentrated on bringing first-class support for MDC and KVP in labels and structured metadata. It took a significant re-design of how label patterns are specified in the config and, thus, required a major version to be incremented. Also, we used this major release as an opportunity to revisit some old decisions regarding the overall configuration structure, and some defaults as well. We tried to put first things first and reduce the noise. Although, the amount of breaking changes in this release is quite significant, following our Migration guide should help you to upgrade smoothly.
New features
#283 Upgrade Logback to 1.5.x
#295 New structure for Loki4j configuration
#300 Improve MDC and Key-Value handling for labels/metadata
#303 Better defaults for labels/metadata/message
#308 MDC and KVP added to structured metadata by default
Fixed bugs
#299 Added '\r' as pair separator
#302 More robust implementation of waitPipelineIsEmpty()
#307 Fix extracting multiple bulk patterns
Refactoring
#292 Encoder: switch KVs from arrays to maps
#293 LogRecord: switch KVs from arrays to maps
#294 Encoder decoupled from Writer
#297 HTTP configuration refactoring
Misc
#290 Switch integration test from Loki 3.3.1 to Loki 3.4.3
#291 Switch compatibility test from Java 23 to Java 24
#296 Upgrade setup-gradle action to v4
#298 Upgrade Gradle wrapper to 8.14
#304 Dependencies upgraded
#306 Upgrade protobuf dependency to 4.31