Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-tracing-example

Unofficial example of how to use Splunk's distribution of OpenTelemetry for nodejs.

setup

First, clone this repo:

git clone git@github.com:breedx-splk/nodejs-tracing-example.git
cd nodejs-tracing-example
npm install

Assuming that you have a collector running and reachable on localhost, things should just work out of the box.

You MAY customize your environment by editing run-node.sh and adjusting the settings. By default, the configuration assumes that data will be exported in OTLP to localhost.

vi run-node.js

Save the file.

running

Just execute the script that you edited above:

./run-node.sh

The code will create a trace consisting of two spans every 1 second. Verbose debug logging is enabled by default, so you should see traces being exported.

Press ^C to end the program.

About

Unofficial example of how to use Splunk's distribution of OpenTelemetry for nodejs

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages