pino-datadog icon indicating copy to clipboard operation
pino-datadog copied to clipboard

Add site option to API and CLI

Open zachazar opened this issue 1 year ago • 0 comments

Description

Datadog now offers different sites in addition to EU (I imagine to load balance a bit). Here is the link to site docs. When your account uses a different site, the URL for ingesting logs is different. Here is a link to the API docs. On the API docs page if you select V1 and a different site, you'll see that the URL is different for ingesting logs.

Screen Shot 2022-12-09 at 8 22 34 AM

This PR

  • Adds a site option to allow you to change the datadog site (along with --site for cli). This option updates the url.
  • Updates documentation
  • Adds tests for new code

Checklist

  • [x] run npm run test Screen Shot 2022-12-09 at 8 38 03 AM

  • [x] tests and/or benchmarks are included

  • [x] documentation is changed or added

  • [x] commit message and code follows Code Of Conduct

zachazar avatar Dec 09 '22 15:12 zachazar