Skip to content

Commit

Permalink
Merge pull request #146 from privy-open-source/feat/improve-tracer
Browse files Browse the repository at this point in the history
release: 0.5.0
  • Loading branch information
adenvt authored Jul 31, 2024
2 parents 44d3c9c + 85e2ed5 commit 5678214
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ That's it! You can now use Pong in your Nuxt app ✨
If you using datadog, don't forget to set these ENV to make sure tracer work properly:

```sh
DD_ENV= # App enviroment, ex: cartenzs-development or cartenzs-production
DD_SERVICE= # Your service name, ex: cartenzs-web-app
DD_ENV= # App enviroment, ex: development-cartenzs or production-cartensz
DD_SERVICE= # Your service name, ex: cartensz-web-app
DD_VERSION= # (Optional) Your service version, ex: 1.0.0
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@privyid/pong",
"version": "0.4.1",
"version": "0.5.0",
"packageManager": "[email protected]",
"description": "Service discovery, Log & Trace module",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/core/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tracer.use('http', {
blocklist: [
'/favicon.ico',
'/robots.txt',
'/ping',
(path) => path.startsWith('/_'),
],
hooks: {
Expand Down
3 changes: 3 additions & 0 deletions src/runtime/pong.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export default defineEventHandler(() => {
app_version : env.BUILD_VERSION || env.APP_VERSION || '-',
platform_name: env.APP_PLATFORM_NAME || env.PLATFORM_NAME || '-',
platform_type: env.APP_PLATFORM_TYPE || env.PLATFORM_TYPE || '-',
dd_env : env.DD_ENV || '-',
dd_service : env.DD_SERVICE || '-',
dd_version : env.DD_VERSION || '-',
config : config.pong.debug ? config.public : undefined,
},
}
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ __metadata:
languageName: node
linkType: hard

"@nuxt/schema@npm:3.12.4, @nuxt/schema@npm:^3.11.2, @nuxt/schema@npm:^3.12.3, @nuxt/schema@npm:^3.12.4":
"@nuxt/schema@npm:3.12.4, @nuxt/schema@npm:^3.12.3, @nuxt/schema@npm:^3.12.4":
version: 3.12.4
resolution: "@nuxt/schema@npm:3.12.4"
dependencies:
Expand Down

0 comments on commit 5678214

Please sign in to comment.