Skip to content

Commit

Permalink
chore: setup tracing node as default function (#121)
Browse files Browse the repository at this point in the history
* chore: setup tracing node as default function

* chore: update package lock
  • Loading branch information
saidsef authored Apr 12, 2024
1 parent 9431688 commit bc0ef56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion libs/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);
* be used to create and export spans for tracing various operations within
* the service.
*/
export const setupTracing = (serviceName, appName="application", endpoint=null) => {
export default function setupTracing (serviceName, appName="application", endpoint=null) {
const provider = new NodeTracerProvider({
resource: new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: serviceName,
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@saidsef/tracing-node",
"version": "1.9.6",
"version": "1.9.7",
"description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
"main": "libs/index.mjs",
"scripts": {
Expand Down

0 comments on commit bc0ef56

Please sign in to comment.