Releases: saidsef/tracing-node
Releases · saidsef/tracing-node
v3.0.2
v3.0.1
chore: version bump (#213)
v2.2.8
feat: add ability to shutdonw tracing gracefully (#212) 1. **Logger Configuration**: - The `diag.setLogger` function now uses a `DiagConsoleLogger` with a log level set to `INFO`. This ensures that tracing logs are properly configured for debugging purposes. 2. **Tracer Provider Initialization**: - The `NodeTracerProvider` is now initialized with a `Resource` object that includes attributes such as `CONTAINER_NAME` and `DEPLOYMENT_ENVIRONMENT`. This provides context to the tracing system. - The `tracerProvider` is declared in module scope for access in the `stopTracing` function. 3. **Propagator Configuration**: - A `CompositePropagator` is used to combine multiple propagators (`W3CBaggagePropagator`, `W3CTraceContextPropagator`, and `B3Propagator`) for efficient propagation of tracing context across different systems. 4. **Span Processor Configuration**: - The `OTLPTraceExporter` is configured with options for exporting traces to a collector endpoint using gRPC. - A `BatchSpanProcessor` is registered with the tracer provider to handle batch processing of spans before exporting them. 5. **Instrumentation Registration**: - Various instrumentations (Express, Pino, HTTP, AWS, DNS) are registered with the tracer provider to instrument specific parts of the application. - Each instrumentation is configured with relevant hooks and settings to ensure accurate and efficient tracing. 6. **Graceful Shutdown**: - A new `stopTracing` function has been added to gracefully shut down the tracing system by shutting down the tracer provider and ensuring all pending spans are exported before cleanup. This commit enhances the OpenTelemetry tracing setup by improving logger configuration, tracer provider initialization, propagator combination, span processor configuration, instrumentation registration, and adding a graceful shutdown mechanism. These changes ensure robustness and efficiency in tracing operations within the application. chore: update k8s test branch
v2.2.7
chore(deps): bump @opentelemetry/instrumentation-http (#208) Bumps [@opentelemetry/instrumentation-http](https://github.com/open-telemetry/opentelemetry-js) from 0.53.0 to 0.54.2. - [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.53.0...experimental/v0.54.2) --- updated-dependencies: - dependency-name: "@opentelemetry/instrumentation-http" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v2.2.6
chore: bump version number to reflect dep updates (#206) These changes should improve the code organisation and ensure we're using the most up-to-date package versions.
v2.2.5
chore(deps): bump @opentelemetry/propagator-b3 from 1.26.0 to 1.27.0 …
v2.2.4
chore(deps): bump @opentelemetry/instrumentation-express (#198)
v2.2.3
chore(deps-dev): bump eslint from 9.9.0 to 9.9.1 (#182)
v2.2.2
chore(deps-dev): bump eslint from 8.57.0 to 9.8.0 (#177) Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.8.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v9.8.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v2.2.1
chore(deps): bump @opentelemetry/instrumentation-express (#165) Bumps [@opentelemetry/instrumentation-express](https://github.com/open-telemetry/opentelemetry-js-contrib) from 0.40.1 to 0.41.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/sql-common-v0.40.1...instrumentation-pg-v0.41.0) --- updated-dependencies: - dependency-name: "@opentelemetry/instrumentation-express" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>