Formatter is very fragile
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- aws, typescript
- Domain
- backend, cloud, observability-sre
Research direction
Start with the messageKey documentation in docs/api.md and reproduce the failure using the formatter configuration shown in the issue. Trace how messageKey and the level formatter are handled together; done means formatting no longer fails and the level output still uses the status attribute expected by Datadog.
Written by the indexing model from the issue text.
Description
https://github.com/pinojs/pino/blob/master/docs/api.md#messagekey-string
Configuring messageKey will cause the formatter to fail.
Additionally we configure a formatter for level which returns status, to meet Datadog's expectations https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes.
level: (label: string) => ({
status: label,
}),
},
- Dominant language
- TypeScript
- Stars
- 135
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FormidableLabs/pino-lambda
-
FormidableLabs/pino-lambda#55 · 1 assignee ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
FormidableLabs/pino-lambda#54 · 1 comment ·
-
enhancement
FormidableLabs/pino-lambda#46 · 1 assignee ·
All issues in FormidableLabs/pino-lambda
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
receptron/mulmoterminal#2264 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
components-web-app/docs#96 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
simonsobs/tileviewer#114 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100