Skip to content

feat(browser-bunyan): Add new browser-bunyan integration - #9701

Open
ngbrown wants to merge 1 commit into
DataDog:masterfrom
ngbrown-forks:integrate-browser-bunyan
Open

feat(browser-bunyan): Add new browser-bunyan integration#9701
ngbrown wants to merge 1 commit into
DataDog:masterfrom
ngbrown-forks:integrate-browser-bunyan

Conversation

@ngbrown

@ngbrown ngbrown commented Aug 5, 2026

Copy link
Copy Markdown

What does this PR do?

This pull requests integrates dd-trace with the logging library browser-bunyan, when it is running on the server-side in Node.js.

Motivation

As frameworks such as Next.js and Remix focus on isomorphic React, the logging library should be isomorphic. I've found browser-bunyan to fit the bill of something lightweight and very usable.

For example, if a web app is attempting to follow the twelve-factor methodology, then it only needs to write its event stream, unbuffered, to stdout, so a simpler the logging library is better.

Additional Notes

I previously submitted #1935 in 2022 but without it getting merged I continued using this integration via a local patch. Now I've re-built it with the current state of the dd-trace library and am re-submitting.

The tests are very similar to the bunyan integration tests, with some minor differences to convert the console output to JSON. The user would be expected to do the same in their Node.js application.

@ngbrown
ngbrown requested review from a team as code owners August 5, 2026 15:38
@ngbrown
ngbrown requested review from BridgeAR and wconti27 and removed request for a team August 5, 2026 15:38
@BridgeAR

BridgeAR commented Aug 5, 2026

Copy link
Copy Markdown
Member

I opened a port for the PR. I guess there should not be much that blocks it, since it is an easy addition. Thank you for the PR. I can not yet guarantee that it will land though

@ngbrown
ngbrown force-pushed the integrate-browser-bunyan branch from 4964e22 to 0a3f314 Compare August 5, 2026 22:15
@ngbrown
ngbrown force-pushed the integrate-browser-bunyan branch from 0a3f314 to 0748679 Compare August 5, 2026 22:23
@ngbrown

ngbrown commented Aug 5, 2026

Copy link
Copy Markdown
Author

I figured out how to get the commit signed. Let me know if you have any feedback on the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants