Skip to content

Commit

Permalink
chore: rename services in datadog trace (#9048)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick committed Dec 7, 2023
1 parent fd273bb commit 108dc46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/gql-executor/gqlExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import RedisInstance from '../server/utils/RedisInstance'
import RedisStream from './RedisStream'

tracer.init({
service: `GQLExecutor ${process.env.SERVER_ID}`,
service: `gql`,
appsec: process.env.DD_APPSEC_ENABLED === 'true',
plugins: false
plugins: false,
version: process.env.npm_package_version
})
tracer.use('ioredis').use('http').use('pg')

Expand Down
5 changes: 3 additions & 2 deletions packages/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import staticFileHandler from './staticFileHandler'
import SAMLHandler from './utils/SAMLHandler'

tracer.init({
service: `Web ${process.env.SERVER_ID}`,
service: `web`,
appsec: process.env.DD_APPSEC_ENABLED === 'true',
plugins: false
plugins: false,
version: process.env.npm_package_version
})
tracer.use('ioredis').use('http').use('pg')

Expand Down

0 comments on commit 108dc46

Please sign in to comment.