Skip to content

Commit 0554a28

Browse files
v1.0.0 (#157)
1 parent 35e8a30 commit 0554a28

File tree

13 files changed

+2393
-2534
lines changed

13 files changed

+2393
-2534
lines changed

.cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": "0.1",
33
"language": "en",
4-
"words": ["esbuild", "rmrf", "gjuchault", "socio", "octocat"],
4+
"words": ["esbuild", "rmrf", "pino-sentry-transport", "socio", "octocat", "pino"],
55
"flagWords": [],
66
"ignorePaths": [
77
"package.json",

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: GitHub Discussions
4-
url: https://github.com/gjuchault/typescript-library-starter/discussions
4+
url: https://github.com/tomer-yechiel/pino-sentry-transport/discussions
55
about: Please discuss non bug-related topics there
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Pino sentry transport
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main
77

88
env:
99
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1010

1111
jobs:
12-
typescript-library-starter:
12+
pino-sentry-transport:
1313
runs-on: ubuntu-latest
1414

1515
concurrency:
@@ -33,17 +33,15 @@ jobs:
3333
- name: Lint check
3434
run: npm run lint:check
3535

36-
# - name: Spell check
37-
# run: npm run spell:check
36+
- name: Spell check
37+
run: npm run spell:check
3838

39-
# - name: Test
40-
# run: npm run test
41-
#
42-
# - name: Setup test
43-
# run: npm run test:setup
39+
- name: Test
40+
run: npm run test
4441

45-
- name: Release
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49-
run: npm run semantic-release
42+
43+
# - name: Release
44+
# env:
45+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
# run: npm run semantic-release

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prerelease": true
1515
}
1616
],
17-
"repositoryUrl": "https://github.com/gjuchault/typescript-library-starter.git",
17+
"repositoryUrl": "https://github.com/tomer-yechiel/pino-sentry-transport.git",
1818
"plugins": [
1919
"@semantic-release/commit-analyzer",
2020
"@semantic-release/release-notes-generator",

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
gabriel.juchault@gmail.com.
63+
tomer.yechiel@gmail.com.
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Please review our [Code of Conduct](./CODE_OF_CONDUCT.md). By participating, you
1616

1717
## :bulb: Asking Questions
1818

19-
If you have any question that does not relate to a bug or a feature request, please use [GitHub Discussions](https://github.com/gjuchault/typescript-library-starter/discussions) instead of GitHub issues.
19+
If you have any question that does not relate to a bug or a feature request, please use [GitHub Discussions](https://github.com/tomer-yechiel/pino-sentry-transport/discussions) instead of GitHub issues.
2020

2121
## :inbox_tray: How can I Contribute?
2222

2323
**GitHub issues**
2424

25-
If you encounter a problem with this library or if you have a new feature you'd like to see in this project, please create [a new issue](https://github.com/gjuchault/typescript-library-starter/issues/new/choose).
25+
If you encounter a problem with this library or if you have a new feature you'd like to see in this project, please create [a new issue](https://github.com/tomer-yechiel/pino-sentry-transport/issues/new/choose).
2626

2727
**GitHub Pull requests**
2828

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
![GitHub Workflow Status](https://github.com/tomer-yechiel/pino-sentry-transport/actions/workflows/pino-sentry-transport.yml/badge.svg?branch=main)
66

77
This module provides a 'transport' for pino that sends errors to Sentry.
8+
89
## Install
910

1011
```shell
11-
npm i pino-sentry-transport
12+
npm i @sentry/node pino-sentry-transport
1213
```
1314

1415
## usage
@@ -22,7 +23,7 @@ const logger = pino({
2223
options: {
2324
sentry: {
2425
dsn: "https://<key>:<secret>@sentry.io/<project>",
25-
// aditional options for sentry
26+
// additional options for sentry
2627
},
2728
withLogRecord: true, // default false - send the log record to sentry as a context.(if its more then 8Kb Sentry will throw an error)
2829
tags: ['id'], // sentry tags to add to the event, uses lodash.get to get the value from the log record
@@ -32,4 +33,5 @@ const logger = pino({
3233
},
3334
});
3435
```
36+
3537
if log contain error, it will send to sentry using captureException if not it will use captureMessage.

0 commit comments

Comments
 (0)