Requirements

The following libraries support tracing:

About Tracing

Traces help you measure arbitrary timings in your serverless functions. They are one of the most powerful features of IOpipe. When you've enabled tracing in your function, you'll be able to see charts like this one in the IOpipe Dashboard, on the invocation detail page:

Adding Tracing to your Function Example: Node.JS

Creating manual traces is enabled by default. To start, add trace mark start and end points with a label in your function.  Here's an example in Node.js:

// wrap your lambda handler
exports.handler = iopipe((event, context) => {
  const {start, end} = context.iopipe.mark;
  start('database');
  // do database work
  end('database');

  start('analytics');
  // send analytics http request
  end('analytics');
  context.succeed('Wow!');
});

Auto-HTTP/S Tracing

There is an automatic, recommended way to trace HTTP/S requests inside of your functions. Currently this is supported in:

Documentation

If you find any out of date info, errors, or just have any other questions, you can hit up our engineers and our community of users directly on Slack

Did this answer your question?