Skip to content

Releases: Julien-R44/pino-loki

Move from got to native fetch

21 Sep 11:43
Compare
Choose a tag to compare

What's Changed

  • refactor: replaced Got HTTP client with native fetch by @TedCha in #34

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

12 May 10:22
Compare
Choose a tag to compare

   🚀 Features

    View changes on GitHub

v2.2.1

16 Jan 18:50
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v2.2.0

16 Jan 18:42
Compare
Choose a tag to compare

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v2.1.3

22 May 07:54
Compare
Choose a tag to compare

Downgrade Got dependency and fix CJS/ ESM issue

v2.1.2

22 May 07:09
Compare
Choose a tag to compare

No significant changes

    View changes on GitHub

v2.1.1

21 May 22:27
Compare
Choose a tag to compare

No significant changes

    View changes on GitHub

v2.1.0

21 May 21:51
Compare
Choose a tag to compare

Features :

  • We now allows custom headers to be passed to pino-loki through the headers options. This is useful for passing the X-Scope-OrgID header to Loki.
  • Support for nano timestamps has been added. See the example in the examples folder for more details.
  • Added a little utility type for defining pino loki options :
import pino from 'pino'
import type { LokiOptions } from 'pino-loki'

const transport = pino.transport<LokiOptions>({
  target: "pino-loki",
  options: {
    // ...
  },
});

Fix :

  • When batching mode was enabled, some logs could be lost if the main process was killed before the batch was sent. This is now fixed.

Other than that, some code has been refactored :

  • Migrate to ESM
  • Switch to got instead of axios

And some integration tests have been added. Logs are sent to a real loki instance and we check that they are correctly received and parsed. Will add a docker-compose file to make it easier to run the tests soon.

v2.0.4

21 Jan 13:16
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

Update dependencies

19 Aug 10:16
Compare
Choose a tag to compare