Dd-trace-js: Pino v6 changes

Created on 18 Mar 2020  路  12Comments  路  Source: DataDog/dd-trace-js

This issue is to let you know that Pino will be releasing a v6 release soon. This release has some significant changes:

https://github.com/pinojs/pino/milestone/2?closed=1

I'm not sure if you need to do anything here or not. Just giving you a heads up.

community integrations

All 12 comments

Thanks for the heads up! I'll do some testing to make sure it still works and release a new version if necessary.

https://github.com/DataDog/dd-trace-js/blob/704c8e07cd67a41903cf6bc28bee7e7b28280365/packages/dd-trace/src/platform/node/loader.js#L138

^ that is preventing me from testing against an rc release (6.0.0-rc.2) of Pino. Is there any way around this?

Right now there is no way around this, but it came up a few times. I wonder if it would make sense to drop the prerelease part of the version number when doing the comparison. I'll do some testing a bit later tonight.

Maybe a toggle in some way to say you accept pre-releases?

Is there a use case for not accepting them? Technically we don't officially support prereleases, but there should be no harm in trying to patch them anyway. At worst the plugin will fail to patch and will be automatically disabled.

馃し鈥嶁檪

I'm open to whatever you decide as long as I can complete my testing 馃榾

I opened #896 with the change. When it lands I'll publish a release to unblock your tests.

馃帀

馃挜 I installed dd-trace from your commit and everything is working:

{"level":"debug","time":"2020-03-25T12:10:40.916Z","logger":"foo","trace_id":"9347cb6d-08a9-4f71-b0c8-c0d5fc1683c9","data":{"dd":{"trace_id":"4089385671770256770","span_id":"4089385671770256770"}},"message":"looking up deals"}

Perfect! Thanks for testing this!

I'll leave this open until #896 is merged and Pino v6 is officially released.

Tests passing with v6: https://circleci.com/gh/DataDog/dd-trace-js/105172.

Closing this now, thanks for making sure Datadog continues to work with Pino!

Was this page helpful?
0 / 5 - 0 ratings