Skip to content

Releases: saidsef/tracing-node

v3.0.1

16 Nov 12:47
032ce26
Compare
Choose a tag to compare
chore: version bump (#213)

v2.2.8

13 Nov 14:15
0f5b491
Compare
Choose a tag to compare
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

10 Nov 12:31
f6e1cd9
Compare
Choose a tag to compare
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

10 Nov 11:45
a651b0e
Compare
Choose a tag to compare
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

17 Oct 19:14
af0699c
Compare
Choose a tag to compare
chore(deps): bump @opentelemetry/propagator-b3 from 1.26.0 to 1.27.0 …

v2.2.4

28 Aug 12:29
363af36
Compare
Choose a tag to compare
chore(deps): bump @opentelemetry/instrumentation-express (#198)

v2.2.3

02 Aug 20:27
de6cd55
Compare
Choose a tag to compare
chore(deps-dev): bump eslint from 9.9.0 to 9.9.1 (#182)

v2.2.2

14 Jul 12:23
ee1054c
Compare
Choose a tag to compare
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

25 Jun 16:55
b734774
Compare
Choose a tag to compare
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>

v2.2.0

14 Jun 06:55
74cb0d3
Compare
Choose a tag to compare
chore: update dep libs (#154)

* chore: update dep libs

* chore: update test job branch