@trace-it/mongodb-adapter

Mongodb adapter for trace-it

Usage no npm install needed!

<script type="module">
  import traceItMongodbAdapter from 'https://cdn.skypack.dev/@trace-it/mongodb-adapter';
</script>

README

trace-it-mongodb-adapter

:clock1: Mongodb adapter for Trace-it :mag_right:

Release npm (scoped) NPM npm

This is a mongodb adapter for the performance measuring tool trace-it.

INSTALL

You can install this storage adapters with npm:

npm install @trace-it/mongodb-adapter

USAGE

As the storage adapters for trace-it are plugins you only have to plug this package in on initialization of trace-it.

import * as TraceIt from 'trace-it';
import { MongoDbAdapter } from '@trace-it/mongodb-adapter';

// For mongodb the dbName is used to specify the json file
const adapter = new MongoDbAdapter({ dbName: './perf.json'});
TraceIt.init(adapter);
const transaction = TraceIt.startTransaction('root');
// ...

For more information look at the README of the core package.

You are looking for other adapters? Look here.

Changelog

See changes for each version in the release notes.

License

MIT - Matthias Hecht