Skip to content

Commit fc5aff5

Browse files
committed
Code is working after changing readme and removing an entry from the package.json file
1 parent c6b694a commit fc5aff5

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

README.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,7 @@ The `database` property is required and takes in the following:
160160
- `URI` should be a connection string to the database where you intend Chronos to write and record data regarding health, HTTP route tracing, and container infomation.
161161
We reccommend using dotenv
162162

163-
You will also need to add the following two lines of code to your express server:,
164-
165-
```js
166-
// Example for REST
167-
const express = require('express');
168-
const app = express();
169-
170-
```
171-
172-
you will also need to require in `chronos-tracker-7` and initialize Chronos, as well as the `./chronos-config` file in addition to implementing `chronos.track()` for all endpoints.
163+
You will also need to require in `chronos-tracker-7` and initialize Chronos, as well as the `./chronos-config` file in addition to implementing `chronos.track()` for all endpoints.
173164

174165
```js
175166
const chronos = require('chronos-tracker-7');
@@ -322,8 +313,8 @@ const chronos = require('chronos-tracker-7');
322313
chronos.use({
323314
microservice: 'payments',
324315
interval: 5000,
325-
dockerized: true,
326-
jmxuri: // your URI here
316+
dockerized: false,
317+
jmxuri: 'http://localhost:12345/metrics', // your URI here
327318
database: {
328319
connection: 'REST',
329320
type: 'MongoDB',

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"installDep": "cd dist && npm i",
2727
"deleteDist": "node nodeUtilities/deleteDist.js",
2828
"reinstall": "rm -rf node_modules && npm install",
29-
"prepare": "tsc -v && tsc -p . && npm run build",
3029
"prepareDist": "npm run deleteDist && tsc -v && tsc -p . && npm run build && npm run copyAssetsDist && npm run copyPackageJsonDist && npm run copyBuildDist && npm run copyBuildDBDist && npm run copyBuildModelsDist && npm run copyBuildRoutesDist && npm run copyBuildUtilitiesDist && npm run copySettingsDist && npm run installDep",
3130
"rebuild": "npm run delete && npm run prepare",
3231
"copyAssetsDist": "echo D | xcopy app\\assets dist\\assets",

0 commit comments

Comments
 (0)