Skip to content

Commit

Permalink
Add hook to bunyan to create tracer events (#4184)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaylor89 committed Nov 1, 2022
1 parent ae42058 commit bfb4aa0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions creator-node/src/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ export const setupTracing = () => {
provider.resource.attributes['service.name']
record['resource.service.spid'] = SPID
record['resource.service.endpoint'] = ENDPOINT

const logLevel = record.logLevel || 'debug'
if (logLevel !== 'debug') {
span.addEvent(record.msg, record)
}
}
})
]
Expand Down

0 comments on commit bfb4aa0

Please sign in to comment.