Skip to content

Commit

Permalink
chore: update docs for import (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: Said Sef <[email protected]>
  • Loading branch information
saidsef authored Apr 13, 2024
1 parent bc0ef56 commit c149930
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ npm install @saidsef/tracing-node --save
## Usage

```
const { setupTracing } = require('@saidsef/tracing-node');
const setupTracing = require('@saidsef/tracing-node');
setupTracing('hostname', 'application_name', 'endpoint');
```

```
import { setupTracing } from '@saidsef/tracing-node';
import setupTracing from '@saidsef/tracing-node';
setupTracing('hostname', 'application_name', 'endpoint');
```

Expand Down
4 changes: 2 additions & 2 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.7",
"version": "1.9.8",
"description": "tracing NodeJS - This is a wrapper for OpenTelemetry instrumentation packages",
"main": "libs/index.mjs",
"scripts": {
Expand Down

0 comments on commit c149930

Please sign in to comment.