├── .github └── workflows │ ├── ci.yaml │ └── release.yaml ├── .gitignore ├── .npmignore ├── .releaserc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── index.d.ts ├── index.js ├── index.ts ├── lib ├── async-hooks │ ├── LICENSE │ ├── async-context.ts │ ├── async-hooks-helper.ts │ ├── async-hooks-module.ts │ ├── async-hooks-storage.ts │ └── index.ts ├── clients │ └── http │ │ ├── http-tracing.constants.ts │ │ ├── http-tracing.module.ts │ │ ├── index.ts │ │ ├── tracing.axios-interceptor.spec.ts │ │ └── tracing.axios-interceptor.ts ├── core │ ├── constants.ts │ ├── core.module.ts │ ├── index.ts │ ├── interfaces │ │ ├── index.ts │ │ ├── tracing-config.interface.ts │ │ └── xray-client.interface.ts │ ├── tracing.service.spec.ts │ └── tracing.service.ts ├── environments │ └── http │ │ ├── async-hooks.middleware.ts │ │ ├── http-environment.module.ts │ │ ├── index.ts │ │ ├── tracing.middleware.spec.ts │ │ └── tracing.middleware.ts ├── exceptions │ ├── index.ts │ ├── tracing-not-initialized.exception.ts │ └── unknown-async-context.exception.ts ├── index.ts └── tracing.module.ts ├── nest-cli.json ├── package.json ├── renovate.json ├── test ├── clients │ └── http │ │ ├── http-client-remote.controller.ts │ │ ├── http-client-remote.service.ts │ │ ├── http-client.controller.ts │ │ ├── http-client.e2e-spec.ts │ │ └── http-client.service.ts ├── environments │ └── http │ │ ├── http-env.controller.ts │ │ ├── http-env.e2e-spec.ts │ │ └── http-env.service.ts ├── jest-e2e.json ├── setup │ └── xray-socket.ts └── util │ └── segmentEmitterMock.ts ├── tsconfig.build.json ├── tsconfig.json └── tslint.json /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/.npmignore -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/.releaserc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/README.md -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | export * from "./dist"; 2 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/index.js -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | export * from "./dist"; 2 | -------------------------------------------------------------------------------- /lib/async-hooks/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/async-hooks/LICENSE -------------------------------------------------------------------------------- /lib/async-hooks/async-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/async-hooks/async-context.ts -------------------------------------------------------------------------------- /lib/async-hooks/async-hooks-helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/async-hooks/async-hooks-helper.ts -------------------------------------------------------------------------------- /lib/async-hooks/async-hooks-module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/async-hooks/async-hooks-module.ts -------------------------------------------------------------------------------- /lib/async-hooks/async-hooks-storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/async-hooks/async-hooks-storage.ts -------------------------------------------------------------------------------- /lib/async-hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/async-hooks/index.ts -------------------------------------------------------------------------------- /lib/clients/http/http-tracing.constants.ts: -------------------------------------------------------------------------------- 1 | export const HEADER_TRACE_CONTEXT = "X-Amzn-Trace-Id"; 2 | -------------------------------------------------------------------------------- /lib/clients/http/http-tracing.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/clients/http/http-tracing.module.ts -------------------------------------------------------------------------------- /lib/clients/http/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./http-tracing.module"; 2 | -------------------------------------------------------------------------------- /lib/clients/http/tracing.axios-interceptor.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/clients/http/tracing.axios-interceptor.spec.ts -------------------------------------------------------------------------------- /lib/clients/http/tracing.axios-interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/clients/http/tracing.axios-interceptor.ts -------------------------------------------------------------------------------- /lib/core/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/constants.ts -------------------------------------------------------------------------------- /lib/core/core.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/core.module.ts -------------------------------------------------------------------------------- /lib/core/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/index.ts -------------------------------------------------------------------------------- /lib/core/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/interfaces/index.ts -------------------------------------------------------------------------------- /lib/core/interfaces/tracing-config.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/interfaces/tracing-config.interface.ts -------------------------------------------------------------------------------- /lib/core/interfaces/xray-client.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/interfaces/xray-client.interface.ts -------------------------------------------------------------------------------- /lib/core/tracing.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/tracing.service.spec.ts -------------------------------------------------------------------------------- /lib/core/tracing.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/core/tracing.service.ts -------------------------------------------------------------------------------- /lib/environments/http/async-hooks.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/environments/http/async-hooks.middleware.ts -------------------------------------------------------------------------------- /lib/environments/http/http-environment.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/environments/http/http-environment.module.ts -------------------------------------------------------------------------------- /lib/environments/http/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/environments/http/index.ts -------------------------------------------------------------------------------- /lib/environments/http/tracing.middleware.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/environments/http/tracing.middleware.spec.ts -------------------------------------------------------------------------------- /lib/environments/http/tracing.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/environments/http/tracing.middleware.ts -------------------------------------------------------------------------------- /lib/exceptions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/exceptions/index.ts -------------------------------------------------------------------------------- /lib/exceptions/tracing-not-initialized.exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/exceptions/tracing-not-initialized.exception.ts -------------------------------------------------------------------------------- /lib/exceptions/unknown-async-context.exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/exceptions/unknown-async-context.exception.ts -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/index.ts -------------------------------------------------------------------------------- /lib/tracing.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/lib/tracing.module.ts -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/renovate.json -------------------------------------------------------------------------------- /test/clients/http/http-client-remote.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/clients/http/http-client-remote.controller.ts -------------------------------------------------------------------------------- /test/clients/http/http-client-remote.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/clients/http/http-client-remote.service.ts -------------------------------------------------------------------------------- /test/clients/http/http-client.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/clients/http/http-client.controller.ts -------------------------------------------------------------------------------- /test/clients/http/http-client.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/clients/http/http-client.e2e-spec.ts -------------------------------------------------------------------------------- /test/clients/http/http-client.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/clients/http/http-client.service.ts -------------------------------------------------------------------------------- /test/environments/http/http-env.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/environments/http/http-env.controller.ts -------------------------------------------------------------------------------- /test/environments/http/http-env.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/environments/http/http-env.e2e-spec.ts -------------------------------------------------------------------------------- /test/environments/http/http-env.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/environments/http/http-env.service.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /test/setup/xray-socket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/setup/xray-socket.ts -------------------------------------------------------------------------------- /test/util/segmentEmitterMock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/test/util/segmentEmitterMock.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/narando/nest-xray/HEAD/tslint.json --------------------------------------------------------------------------------