Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 656 Bytes

File metadata and controls

31 lines (21 loc) · 656 Bytes

Mock Infinite Tracing gRPC Server

This is a gRPC server used to test our infinite tracing with the Node.js agent.

Setup

To setup gRPC, run

npm install
node index.js

Test

Once the gPRC server is started, you can use it in an example application and set the following in newrelic.js

exports.config = {
  license_key: <your-license-key>,
  infinite_tracing: {
    trace_observer: {
      host: 'localhost:50051
    }
  }
}

As you use the application the mock gPRC server will log to console the number of spans seen.