@breadstone/archipel-platform-telemetry 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -3
- package/src/OtelSdkHolder.d.ts +1 -1
- package/src/OtelSdkHolder.js +2 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ import { TelemetryModule } from '@breadstone/archipel-platform-telemetry';
|
|
|
17
17
|
- **Metrics collection**: Counter, histogram, and gauge recording via `TelemetryFacade`
|
|
18
18
|
- **Distributed tracing**: OpenTelemetry SDK integration with automatic span creation
|
|
19
19
|
- **Operation interceptor**: `OperationTelemetryInterceptor` wraps controller methods in telemetry operations (returns `Observable<unknown>`)
|
|
20
|
-
- **Graceful degradation**: Falls back to `NoopTelemetryFacade` when disabled
|
|
20
|
+
- **Graceful degradation**: Falls back to `NoopTelemetryFacade` when disabled - zero overhead
|
|
21
21
|
- **Health checks**: Integration with health module for observability readiness
|
|
22
22
|
- **Structured logging**: `TelemetryLoggerService` with request correlation IDs
|
|
23
23
|
- **Eager metric init**: `MetricsService` creates instruments at startup via `OnModuleInit`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone/archipel-platform-telemetry",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "OpenTelemetry integration with tracing, metrics, and graceful no-op fallback for NestJS.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@breadstone/archipel-platform-caching": "0.0.
|
|
32
|
-
"@breadstone/archipel-platform-core": "0.0.
|
|
31
|
+
"@breadstone/archipel-platform-caching": "0.0.23",
|
|
32
|
+
"@breadstone/archipel-platform-core": "0.0.23",
|
|
33
33
|
"tslib": "2.8.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
package/src/OtelSdkHolder.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class OtelSdkHolder implements OnApplicationShutdown {
|
|
|
12
12
|
private _sdk?;
|
|
13
13
|
/**
|
|
14
14
|
* Stores the SDK reference so it can be shut down later.
|
|
15
|
-
* Can only be called once
|
|
15
|
+
* Can only be called once - subsequent calls are ignored.
|
|
16
16
|
*/
|
|
17
17
|
setSdk(sdk: unknown): void;
|
|
18
18
|
/** @inheritdoc */
|
package/src/OtelSdkHolder.js
CHANGED
|
@@ -24,11 +24,11 @@ let OtelSdkHolder = OtelSdkHolder_1 = class OtelSdkHolder {
|
|
|
24
24
|
// #region Methods
|
|
25
25
|
/**
|
|
26
26
|
* Stores the SDK reference so it can be shut down later.
|
|
27
|
-
* Can only be called once
|
|
27
|
+
* Can only be called once - subsequent calls are ignored.
|
|
28
28
|
*/
|
|
29
29
|
setSdk(sdk) {
|
|
30
30
|
if (this._sdk) {
|
|
31
|
-
this._logger.warn('OtelSdkHolder.setSdk() called more than once
|
|
31
|
+
this._logger.warn('OtelSdkHolder.setSdk() called more than once - ignoring.');
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
this._sdk = sdk;
|