Skip to content

add log4cats-natchez-trace-context for adding trace context to logs - #167

Draft
bpholt wants to merge 2 commits into
mainfrom
trace-context
Draft

add log4cats-natchez-trace-context for adding trace context to logs#167
bpholt wants to merge 2 commits into
mainfrom
trace-context

Conversation

@bpholt

@bpholt bpholt commented Nov 10, 2025

Copy link
Copy Markdown
Member

No description provided.

@bpholt bpholt self-assigned this Nov 10, 2025

import org.typelevel.log4cats.*

private[natchez] abstract class DelegatingLogger[F[_]](delegate: SelfAwareStructuredLogger[F]) extends SelfAwareStructuredLogger[F] {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's lots of use cases here and this could be in core, i.e. different trace backends, IOLocal context loggers

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I'll make a PR adding it there.

@bpholt
bpholt marked this pull request as draft December 12, 2025 23:04
@bpholt

bpholt commented Dec 12, 2025

Copy link
Copy Markdown
Member Author

Marked as draft while we wait for typelevel/log4cats#944.

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