DataDog / serilog-sinks-datadog-logs

Serilog Sink that sends log events to Datadog https://www.datadoghq.com/
Apache License 2.0
60 stars 41 forks source link

Enable customization of HTTP client in derived classes #90

Closed tomasz-soltysik closed 1 year ago

tomasz-soltysik commented 1 year ago

Added protected constructor to enable easy customization of HTTP Datadog client.

This will enable creating derived class that can provide own HTTP client and URL.

tomasz-soltysik commented 1 year ago

This change will allow for us to create HTTP client that uses browser logs endpoint with API key/token in query parameters instead of headers. We want to use it in Blazor app, which can use this library as is due to CORS errors with API Key header.

tomasz-soltysik commented 1 year ago

Closing this PR, created new #91