Repository navigation
feat: Dash0 telemetry provider - #1228
Conversation
|
Looks good I think. Regarding testing I guess just something that calls |
Spreading an `Error` will not copy the "main" error properties, namely `name`, `message` and `stack`. To ensure they are recorded in the exception, include them explicitly. The error is still spread into the exception object to ensure we record any additional properties, for example `code`.
|
Notes from testing:
|
Always use the error message. Also avoids the trouble of cloning the error in order to override its message.
|
Following on from the previous fix: I think we should consider the purpose between an error's log message (optional argument passed into In 61349f1 I've therefore removed the use of |
Thanks for clarifying this point. |
|
🎉 This PR is included in version 2.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This fixes a bug in our error logging that I noticed while working on #1228. If the `message` parameter of `Logger#error` is omitted, an empty message is logged: ```jsonc { "level": "error", "message": "", "error": { /* ... */ } } ``` This previously went unnoticed because the Lumigo error integration also writes to the logs and was extracting `error.message`, so both were visible, albeit in separate log messages. When no error log message is specified, we should fall back to using `error.message`. Jira: [ENG-5363] [ENG-5363]: https://comicrelief.atlassian.net/browse/ENG-5363
Logger events (errors and metrics) will be sent to Dash0 from functions that are configured with Dash0's Lambda Extension layer.
Contrary to existing telemetry providers, I have made
@opentelemetry/apian optional peer dependency rather than a runtime dependency. Projects that use Dash0 will need to explicitly add it to their dependencies. This avoids having the package installed if your project is not using Dash0. In the next major release, this will be the standard for all telemetry providers.Jira: ENG-5107