Skip to content

Cross scala versions#1

Merged
fupelaqu merged 3 commits into
mainfrom
crossScalaVersions
Jul 20, 2025
Merged

Cross scala versions#1
fupelaqu merged 3 commits into
mainfrom
crossScalaVersions

Conversation

@fupelaqu

Copy link
Copy Markdown
Contributor

No description provided.

@fupelaqu fupelaqu merged commit df7b421 into main Jul 20, 2025
0 of 5 checks passed
fupelaqu added a commit that referenced this pull request Jun 14, 2026
…ry 13.7 Phase B gate #1)

HttpCorrelation.withCorrelation — an akka-http directive (mirrors HttpMetrics.withMetrics,
applied at the same ApiRoutes.mainRoutes attach point) that extracts-or-generates
X-Correlation-Id, MDC-stamps the synchronous request thread (operational stdout),
re-injects the canonical id onto the request so downstream tapir reads the same value,
and echoes it on the response.

HttpCorrelation.correlationInput — a reusable tapir EndpointInput[Option[String]]
(extractFromRequest) so serverLogic receives the id as DATA and threads it onto the
command (AuditableCommand.withCorrelationId) on the request thread, never an MDC read
across the Future (C14). Builds on the Auditable/AuditableCommand/AuditableEvent carriers
plus withCid already promoted in b4d0ee1.

Bumps tapir 1.7.0->1.8.5, tapirHttpSession 0.2.0->0.3.0, logback 1.2.3->1.4.14, slf4j.
HttpCorrelationSpec (7 tests, incl. end-to-end tapir serverLogic delivery) and HttpMetricsSpec
green; +server/compile (2.12+2.13) and scalafmtAll clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fupelaqu added a commit that referenced this pull request Jun 14, 2026
…#1)

Generic structured audit logger in core (co-located with the Auditable/AuditableEvent carriers) so every pod (licensing/notification/payment/scheduler) reuses one helper instead of an in-repo copy.

One FIXED shared logger name app.softnetwork.audit -> a single additivity=false route in the shared logback.xml template; each pod still writes its own pod-local audit.log; the service field (per-eventType resolver, or a fixed value) distinguishes domains at query time. correlationId stays explicit data (never MDC across the async path, C2).

Adds logstash-logback-encoder 8.1 to core (StructuredArguments.kv). AuditLogSpec (3 tests via logback ListAppender) green; +core/compile (2.12+2.13) + scalafmtAll clean. Also folds the ApiRoutes unused-import cleanup from gate #1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant