Skip to content

Remove Loki logging integration from benchmark module - #117

Merged
vanrogu merged 1 commit into
developfrom
claude/loki-dependency-removal-amx823
Aug 3, 2026
Merged

Remove Loki logging integration from benchmark module#117
vanrogu merged 1 commit into
developfrom
claude/loki-dependency-removal-amx823

Conversation

@vanrogu

@vanrogu vanrogu commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

Removes the Loki4j logging appender configuration and dependency from the eventstore-benchmark module. This simplifies the logging setup by removing the optional distributed logging capability that was not actively used.

Changes

  • logback.xml: Removed the entire Loki appender configuration block, including HTTP endpoint setup, labels, message patterns, and batch settings
  • logback.xml: Removed commented-out Loki appender reference from the root logger and the Loki logger level configuration
  • pom.xml: Removed the loki-logback.version property definition
  • pom.xml: Removed the loki-logback-appender dependency

Details

The benchmark module now uses only the console appender for logging, reducing external dependencies and simplifying the logging configuration. The Loki integration was previously optional (commented out) and required Docker Compose to be running, making it an unnecessary dependency for the core benchmark functionality.

https://claude.ai/code/session_01NKMCrqqcnhpcCvXJbFEw1e

Loki was confined to sliceworkz-eventstore-benchmark: a compile-scope
com.github.loki4j:loki-logback-appender and an appender block in its
logback.xml. The appender was already commented out of the root logger, and
logback does not process an appender nothing references — startup reports
"Appender named [LOKI] not referenced. Skipping further processing." — so
nothing was ever sent, no class loaded and no thread started. The block's
comment also pointed at a `docker compose up` for a compose file this
repository no longer contains.

What it still cost: 120KB of dead classes shaded into the benchmark's
executable jar, and a dependency Dependabot keeps proposing upgrades for.

No published artifact is affected. The benchmark module sets
maven.deploy.skip, and the dependency was declared there only, so no released
module ever carried it and no consumer's classpath changes.

Verified: the module builds, the shaded jar contains no com/github/loki4j
entries (16,438,596 -> 16,316,662 bytes), the dependency tree no longer
mentions loki, and the logback config parses with the root logger still
attached to CONSOLE.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NKMCrqqcnhpcCvXJbFEw1e
@vanrogu
vanrogu merged commit 46676eb into develop Aug 3, 2026
1 check passed
@vanrogu
vanrogu deleted the claude/loki-dependency-removal-amx823 branch August 3, 2026 13:05
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