├── .babelrc.json ├── .eslintignore ├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── build.yml ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc.json ├── APM-Grafana-Dashboard.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── images ├── apm-dashboard-1.png ├── apm-dashboard-2.png └── apm-dashboard-3.png ├── package.json ├── playground ├── README.md ├── app.js ├── nest │ ├── .eslintrc.js │ ├── .gitignore │ ├── .prettierrc │ ├── README.md │ ├── nest-cli.json │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── app.controller.ts │ │ ├── app.module.ts │ │ ├── app.service.ts │ │ └── main.ts │ ├── test │ │ ├── app.e2e-spec.ts │ │ └── jest-e2e.json │ ├── tsconfig.build.json │ └── tsconfig.json └── next │ ├── app │ ├── app-apis │ │ ├── [id] │ │ │ └── route.js │ │ └── route.js │ ├── labels │ │ └── route.js │ ├── layout.js │ ├── page.js │ └── users │ │ ├── [id] │ │ ├── delete │ │ │ └── page.js │ │ └── page.js │ │ └── page.js │ └── next.js ├── run-tests.sh ├── src ├── OpenAPM.ts ├── async-local-storage.http.ts ├── async-local-storage.ts ├── clients │ ├── express.ts │ ├── mysql2.ts │ ├── nestjs.ts │ └── nextjs.ts ├── index.ts ├── levitate │ ├── events.ts │ └── tokenHelpers.ts ├── shimmer.ts └── utils.ts ├── tests ├── enabled.test.ts ├── express.test.ts ├── mysql2.test.ts ├── nestjs │ ├── .eslintrc.js │ ├── .prettierrc │ ├── nest-cli.json │ ├── nestjs.test.ts │ ├── src │ │ ├── app.controller.ts │ │ ├── app.module.ts │ │ └── app.service.ts │ ├── tsconfig.build.json │ └── tsconfig.json ├── nextjs │ ├── .eslintrc.json │ ├── app │ │ ├── app-apis │ │ │ ├── [id] │ │ │ │ └── route.js │ │ │ └── route.js │ │ ├── labels │ │ │ └── route.js │ │ ├── layout.js │ │ ├── page.js │ │ ├── styles.css │ │ └── users │ │ │ ├── [id] │ │ │ ├── delete │ │ │ │ └── page.js │ │ │ └── page.js │ │ │ └── page.js │ ├── next-env.d.ts │ ├── next.config.js │ ├── nextjs.test.ts │ ├── pages │ │ ├── about.tsx │ │ ├── api │ │ │ ├── auth │ │ │ │ └── [...nextAuth].ts │ │ │ └── hello.ts │ │ └── blog │ │ │ └── [id].tsx │ ├── server.js │ └── tsconfig.json ├── prisma │ ├── prisma.test.ts │ └── schema.prisma └── utils.ts ├── tsconfig.json ├── tsup.config.ts └── vite.config.js /.babelrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@babel/env"] 3 | } 4 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | rollup.config.mjs 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .DS_Store 4 | .idea 5 | .env 6 | .next -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | node_modules 3 | README.md 4 | tsconfig* 5 | .babelrc.json 6 | tests 7 | playground -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /APM-Grafana-Dashboard.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/APM-Grafana-Dashboard.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/SECURITY.md -------------------------------------------------------------------------------- /images/apm-dashboard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/images/apm-dashboard-1.png -------------------------------------------------------------------------------- /images/apm-dashboard-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/images/apm-dashboard-2.png -------------------------------------------------------------------------------- /images/apm-dashboard-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/images/apm-dashboard-3.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/package.json -------------------------------------------------------------------------------- /playground/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/README.md -------------------------------------------------------------------------------- /playground/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/app.js -------------------------------------------------------------------------------- /playground/nest/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/.eslintrc.js -------------------------------------------------------------------------------- /playground/nest/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/.gitignore -------------------------------------------------------------------------------- /playground/nest/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/.prettierrc -------------------------------------------------------------------------------- /playground/nest/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/README.md -------------------------------------------------------------------------------- /playground/nest/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/nest-cli.json -------------------------------------------------------------------------------- /playground/nest/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/package-lock.json -------------------------------------------------------------------------------- /playground/nest/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/package.json -------------------------------------------------------------------------------- /playground/nest/src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/src/app.controller.ts -------------------------------------------------------------------------------- /playground/nest/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/src/app.module.ts -------------------------------------------------------------------------------- /playground/nest/src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/src/app.service.ts -------------------------------------------------------------------------------- /playground/nest/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/src/main.ts -------------------------------------------------------------------------------- /playground/nest/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /playground/nest/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/test/jest-e2e.json -------------------------------------------------------------------------------- /playground/nest/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/tsconfig.build.json -------------------------------------------------------------------------------- /playground/nest/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/nest/tsconfig.json -------------------------------------------------------------------------------- /playground/next/app/app-apis/[id]/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/app-apis/[id]/route.js -------------------------------------------------------------------------------- /playground/next/app/app-apis/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/app-apis/route.js -------------------------------------------------------------------------------- /playground/next/app/labels/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/labels/route.js -------------------------------------------------------------------------------- /playground/next/app/layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/layout.js -------------------------------------------------------------------------------- /playground/next/app/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/page.js -------------------------------------------------------------------------------- /playground/next/app/users/[id]/delete/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/users/[id]/delete/page.js -------------------------------------------------------------------------------- /playground/next/app/users/[id]/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/users/[id]/page.js -------------------------------------------------------------------------------- /playground/next/app/users/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/app/users/page.js -------------------------------------------------------------------------------- /playground/next/next.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/playground/next/next.js -------------------------------------------------------------------------------- /run-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/run-tests.sh -------------------------------------------------------------------------------- /src/OpenAPM.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/OpenAPM.ts -------------------------------------------------------------------------------- /src/async-local-storage.http.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/async-local-storage.http.ts -------------------------------------------------------------------------------- /src/async-local-storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/async-local-storage.ts -------------------------------------------------------------------------------- /src/clients/express.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/clients/express.ts -------------------------------------------------------------------------------- /src/clients/mysql2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/clients/mysql2.ts -------------------------------------------------------------------------------- /src/clients/nestjs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/clients/nestjs.ts -------------------------------------------------------------------------------- /src/clients/nextjs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/clients/nextjs.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/levitate/events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/levitate/events.ts -------------------------------------------------------------------------------- /src/levitate/tokenHelpers.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/shimmer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/shimmer.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tests/enabled.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/enabled.test.ts -------------------------------------------------------------------------------- /tests/express.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/express.test.ts -------------------------------------------------------------------------------- /tests/mysql2.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/mysql2.test.ts -------------------------------------------------------------------------------- /tests/nestjs/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/.eslintrc.js -------------------------------------------------------------------------------- /tests/nestjs/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/.prettierrc -------------------------------------------------------------------------------- /tests/nestjs/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/nest-cli.json -------------------------------------------------------------------------------- /tests/nestjs/nestjs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/nestjs.test.ts -------------------------------------------------------------------------------- /tests/nestjs/src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/src/app.controller.ts -------------------------------------------------------------------------------- /tests/nestjs/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/src/app.module.ts -------------------------------------------------------------------------------- /tests/nestjs/src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/src/app.service.ts -------------------------------------------------------------------------------- /tests/nestjs/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/tsconfig.build.json -------------------------------------------------------------------------------- /tests/nestjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nestjs/tsconfig.json -------------------------------------------------------------------------------- /tests/nextjs/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next" 3 | } 4 | -------------------------------------------------------------------------------- /tests/nextjs/app/app-apis/[id]/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/app-apis/[id]/route.js -------------------------------------------------------------------------------- /tests/nextjs/app/app-apis/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/app-apis/route.js -------------------------------------------------------------------------------- /tests/nextjs/app/labels/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/labels/route.js -------------------------------------------------------------------------------- /tests/nextjs/app/layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/layout.js -------------------------------------------------------------------------------- /tests/nextjs/app/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/page.js -------------------------------------------------------------------------------- /tests/nextjs/app/styles.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /tests/nextjs/app/users/[id]/delete/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/users/[id]/delete/page.js -------------------------------------------------------------------------------- /tests/nextjs/app/users/[id]/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/users/[id]/page.js -------------------------------------------------------------------------------- /tests/nextjs/app/users/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/app/users/page.js -------------------------------------------------------------------------------- /tests/nextjs/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/next-env.d.ts -------------------------------------------------------------------------------- /tests/nextjs/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /tests/nextjs/nextjs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/nextjs.test.ts -------------------------------------------------------------------------------- /tests/nextjs/pages/about.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/pages/about.tsx -------------------------------------------------------------------------------- /tests/nextjs/pages/api/auth/[...nextAuth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/pages/api/auth/[...nextAuth].ts -------------------------------------------------------------------------------- /tests/nextjs/pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/pages/api/hello.ts -------------------------------------------------------------------------------- /tests/nextjs/pages/blog/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/pages/blog/[id].tsx -------------------------------------------------------------------------------- /tests/nextjs/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/server.js -------------------------------------------------------------------------------- /tests/nextjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/nextjs/tsconfig.json -------------------------------------------------------------------------------- /tests/prisma/prisma.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/prisma/prisma.test.ts -------------------------------------------------------------------------------- /tests/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/prisma/schema.prisma -------------------------------------------------------------------------------- /tests/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tests/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/last9/openapm-nodejs/HEAD/vite.config.js --------------------------------------------------------------------------------