@ogcio/o11y-sdk-node 0.4.1 → 0.6.0
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/dist/sdk-core/index.d.ts +1 -0
- package/dist/sdk-core/index.js +1 -0
- package/dist/sdk-core/lib/index.d.ts +2 -0
- package/dist/sdk-core/lib/index.js +2 -0
- package/dist/sdk-core/lib/redaction/basic-redactor.d.ts +7 -0
- package/dist/sdk-core/lib/redaction/basic-redactor.js +18 -0
- package/dist/sdk-core/lib/redaction/email-redactor.d.ts +8 -0
- package/dist/sdk-core/lib/redaction/email-redactor.js +17 -0
- package/dist/sdk-core/lib/redaction/index.d.ts +9 -0
- package/dist/sdk-core/lib/redaction/index.js +4 -0
- package/dist/sdk-core/lib/redaction/ip-redactor.d.ts +9 -0
- package/dist/sdk-core/lib/redaction/ip-redactor.js +23 -0
- package/dist/sdk-core/lib/redaction/ppsn-redactor.d.ts +8 -0
- package/dist/sdk-core/lib/redaction/ppsn-redactor.js +17 -0
- package/dist/sdk-core/lib/utils/data-structures.d.ts +15 -0
- package/dist/{lib/internals/redaction/pii-detection.js → sdk-core/lib/utils/data-structures.js} +4 -27
- package/dist/sdk-core/lib/utils/index.d.ts +2 -0
- package/dist/sdk-core/lib/utils/index.js +2 -0
- package/dist/sdk-core/lib/utils/string-decoding.d.ts +7 -0
- package/dist/sdk-core/lib/utils/string-decoding.js +22 -0
- package/dist/{index.d.ts → sdk-node/index.d.ts} +1 -0
- package/dist/{index.js → sdk-node/index.js} +1 -0
- package/dist/sdk-node/lib/config-manager.d.ts +3 -0
- package/dist/{lib → sdk-node/lib}/config-manager.js +1 -4
- package/dist/sdk-node/lib/exporter/console.d.ts +3 -0
- package/dist/sdk-node/lib/exporter/grpc.d.ts +3 -0
- package/dist/sdk-node/lib/exporter/http.d.ts +3 -0
- package/dist/{lib → sdk-node/lib}/exporter/index.d.ts +2 -2
- package/dist/{lib → sdk-node/lib}/exporter/pii-exporter-decorator.d.ts +6 -6
- package/dist/{lib → sdk-node/lib}/exporter/pii-exporter-decorator.js +7 -3
- package/dist/sdk-node/lib/exporter/processor-config.d.ts +7 -0
- package/dist/{lib → sdk-node/lib}/exporter/processor-config.js +4 -0
- package/dist/{lib → sdk-node/lib}/index.d.ts +11 -0
- package/dist/{lib → sdk-node/lib}/instrumentation.node.js +1 -1
- package/dist/sdk-node/lib/internals/redaction/redactors/email.d.ts +8 -0
- package/dist/sdk-node/lib/internals/redaction/redactors/email.js +19 -0
- package/dist/sdk-node/lib/internals/redaction/redactors/index.d.ts +16 -0
- package/dist/sdk-node/lib/internals/redaction/redactors/index.js +13 -0
- package/dist/sdk-node/lib/internals/redaction/redactors/ip.d.ts +8 -0
- package/dist/sdk-node/lib/internals/redaction/redactors/ip.js +20 -0
- package/dist/sdk-node/lib/internals/redaction/redactors/ppsn.d.ts +8 -0
- package/dist/sdk-node/lib/internals/redaction/redactors/ppsn.js +18 -0
- package/dist/{lib → sdk-node/lib}/metrics.d.ts +1 -1
- package/dist/{lib → sdk-node/lib}/processor/enrich-logger-processor.d.ts +3 -3
- package/dist/{lib → sdk-node/lib}/processor/enrich-span-processor.d.ts +3 -3
- package/dist/sdk-node/lib/processor/nextjs-logger-processor.d.ts +7 -0
- package/dist/sdk-node/lib/processor/nextjs-logger-processor.js +30 -0
- package/dist/sdk-node/lib/processor/nextjs-span-processor.d.ts +8 -0
- package/dist/sdk-node/lib/processor/nextjs-span-processor.js +25 -0
- package/dist/{lib → sdk-node/lib}/resource.d.ts +2 -2
- package/dist/{lib → sdk-node/lib}/traces.d.ts +1 -1
- package/dist/{lib → sdk-node/lib}/traces.js +2 -2
- package/dist/{lib → sdk-node/lib}/url-sampler.d.ts +3 -3
- package/dist/{lib → sdk-node/lib}/utils.d.ts +1 -1
- package/dist/sdk-node/package.json +62 -0
- package/package.json +25 -22
- package/CHANGELOG.md +0 -226
- package/dist/lib/config-manager.d.ts +0 -3
- package/dist/lib/exporter/console.d.ts +0 -3
- package/dist/lib/exporter/grpc.d.ts +0 -3
- package/dist/lib/exporter/http.d.ts +0 -3
- package/dist/lib/exporter/processor-config.d.ts +0 -5
- package/dist/lib/internals/redaction/pii-detection.d.ts +0 -25
- package/dist/lib/internals/redaction/redactors/email.d.ts +0 -8
- package/dist/lib/internals/redaction/redactors/email.js +0 -48
- package/dist/lib/internals/redaction/redactors/index.d.ts +0 -4
- package/dist/lib/internals/redaction/redactors/index.js +0 -6
- package/dist/lib/internals/redaction/redactors/ip.d.ts +0 -10
- package/dist/lib/internals/redaction/redactors/ip.js +0 -54
- package/dist/lib/internals/shared-metrics.d.ts +0 -7
- package/dist/lib/internals/shared-metrics.js +0 -18
- package/dist/package.json +0 -59
- package/dist/vitest.config.d.ts +0 -2
- package/dist/vitest.config.js +0 -45
- package/index.ts +0 -9
- package/lib/config-manager.ts +0 -16
- package/lib/exporter/console.ts +0 -33
- package/lib/exporter/grpc.ts +0 -65
- package/lib/exporter/http.ts +0 -56
- package/lib/exporter/index.ts +0 -9
- package/lib/exporter/pii-exporter-decorator.ts +0 -187
- package/lib/exporter/processor-config.ts +0 -23
- package/lib/index.ts +0 -118
- package/lib/instrumentation.node.ts +0 -115
- package/lib/internals/hooks.ts +0 -14
- package/lib/internals/redaction/pii-detection.ts +0 -113
- package/lib/internals/redaction/redactors/email.ts +0 -58
- package/lib/internals/redaction/redactors/index.ts +0 -12
- package/lib/internals/redaction/redactors/ip.ts +0 -68
- package/lib/internals/shared-metrics.ts +0 -34
- package/lib/metrics.ts +0 -75
- package/lib/processor/enrich-logger-processor.ts +0 -34
- package/lib/processor/enrich-span-processor.ts +0 -39
- package/lib/resource.ts +0 -30
- package/lib/traces.ts +0 -78
- package/lib/url-sampler.ts +0 -52
- package/lib/utils.ts +0 -22
- package/test/config-manager.test.ts +0 -34
- package/test/exporter/pii-exporter-decorator.test.ts +0 -88
- package/test/index.test.ts +0 -70
- package/test/integration/README.md +0 -26
- package/test/integration/http-tracing.integration.test.ts +0 -56
- package/test/integration/pii.integration.test.ts +0 -68
- package/test/integration/run.sh +0 -88
- package/test/internals/hooks.test.ts +0 -45
- package/test/internals/pii-detection.test.ts +0 -265
- package/test/internals/redactors/email.test.ts +0 -81
- package/test/internals/redactors/ip.test.ts +0 -93
- package/test/internals/shared-metrics.test.ts +0 -34
- package/test/metrics.test.ts +0 -142
- package/test/node-config.test.ts +0 -190
- package/test/processor/enrich-logger-processor.test.ts +0 -58
- package/test/processor/enrich-span-processor.test.ts +0 -52
- package/test/resource.test.ts +0 -33
- package/test/traces/active-span.test.ts +0 -28
- package/test/traces/with-span.test.ts +0 -340
- package/test/url-sampler.test.ts +0 -215
- package/test/utils/alloy-log-parser.ts +0 -53
- package/test/utils/mock-signals.ts +0 -144
- package/test/validation.test.ts +0 -103
- package/tsconfig.json +0 -15
- package/vitest.config.ts +0 -46
- /package/dist/{lib → sdk-node/lib}/exporter/console.js +0 -0
- /package/dist/{lib → sdk-node/lib}/exporter/grpc.js +0 -0
- /package/dist/{lib → sdk-node/lib}/exporter/http.js +0 -0
- /package/dist/{lib → sdk-node/lib}/exporter/index.js +0 -0
- /package/dist/{lib → sdk-node/lib}/index.js +0 -0
- /package/dist/{lib → sdk-node/lib}/instrumentation.node.d.ts +0 -0
- /package/dist/{lib → sdk-node/lib}/internals/hooks.d.ts +0 -0
- /package/dist/{lib → sdk-node/lib}/internals/hooks.js +0 -0
- /package/dist/{lib → sdk-node/lib}/metrics.js +0 -0
- /package/dist/{lib → sdk-node/lib}/processor/enrich-logger-processor.js +0 -0
- /package/dist/{lib → sdk-node/lib}/processor/enrich-span-processor.js +0 -0
- /package/dist/{lib → sdk-node/lib}/resource.js +0 -0
- /package/dist/{lib → sdk-node/lib}/url-sampler.js +0 -0
- /package/dist/{lib → sdk-node/lib}/utils.js +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Context } from "@opentelemetry/api";
|
|
2
|
+
import { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
3
|
+
export declare class NextJsSpanProcessor implements SpanProcessor {
|
|
4
|
+
forceFlush(): Promise<void>;
|
|
5
|
+
onStart(span: Span, _context: Context): void;
|
|
6
|
+
onEnd(_span: ReadableSpan): void;
|
|
7
|
+
shutdown(): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SpanStatusCode } from "@opentelemetry/api";
|
|
2
|
+
export class NextJsSpanProcessor {
|
|
3
|
+
forceFlush() {
|
|
4
|
+
return Promise.resolve();
|
|
5
|
+
}
|
|
6
|
+
onStart(span, _context) {
|
|
7
|
+
if (span.status.code !== SpanStatusCode.ERROR)
|
|
8
|
+
return;
|
|
9
|
+
let index = -1;
|
|
10
|
+
do {
|
|
11
|
+
index = span.events.findIndex((e) => typeof e.attributes?.["exception.message"] === "string" &&
|
|
12
|
+
e.attributes["exception.message"] === "NEXT_REDIRECT");
|
|
13
|
+
if (index !== -1) {
|
|
14
|
+
span.setStatus({ code: SpanStatusCode.OK });
|
|
15
|
+
span.events.splice(index, 1);
|
|
16
|
+
}
|
|
17
|
+
} while (index !== -1);
|
|
18
|
+
}
|
|
19
|
+
onEnd(_span) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
shutdown() {
|
|
23
|
+
return Promise.resolve();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResourceDetector, DetectedResource } from "@opentelemetry/resources";
|
|
2
|
-
import { SignalAttributeValue } from "./index.js";
|
|
1
|
+
import type { ResourceDetector, DetectedResource } from "@opentelemetry/resources";
|
|
2
|
+
import type { SignalAttributeValue } from "./index.js";
|
|
3
3
|
export declare class ObservabilityResourceDetector implements ResourceDetector {
|
|
4
4
|
private _resourceAttributes;
|
|
5
5
|
constructor(resourceAttributes?: Record<string, SignalAttributeValue>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
1
|
+
import { SpanStatusCode, trace, } from "@opentelemetry/api";
|
|
2
2
|
import { getNodeSdkConfig } from "./config-manager.js";
|
|
3
3
|
/**
|
|
4
4
|
* Generates a function wrapping a given Callable `fn` into an error handling block.
|
|
@@ -45,6 +45,6 @@ export function getActiveSpan() {
|
|
|
45
45
|
}
|
|
46
46
|
export function withSpan({ traceName, spanName, spanOptions = {}, fn, }) {
|
|
47
47
|
const sdkConfig = getNodeSdkConfig();
|
|
48
|
-
const tracer = trace.getTracer(traceName ?? sdkConfig
|
|
48
|
+
const tracer = trace.getTracer(traceName ?? sdkConfig?.serviceName ?? "o11y-sdk", sdkConfig?.serviceVersion);
|
|
49
49
|
return tracer.startActiveSpan(spanName, spanOptions, selfContainedSpanHandlerGenerator(fn));
|
|
50
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Attributes, Context, Link, SpanKind } from "@opentelemetry/api";
|
|
2
|
-
import { Sampler, SamplingResult } from "@opentelemetry/sdk-trace-base";
|
|
3
|
-
import { SamplerCondition } from "./index.js";
|
|
1
|
+
import { type Attributes, type Context, type Link, SpanKind } from "@opentelemetry/api";
|
|
2
|
+
import { type Sampler, type SamplingResult } from "@opentelemetry/sdk-trace-base";
|
|
3
|
+
import type { SamplerCondition } from "./index.js";
|
|
4
4
|
export declare class UrlSampler implements Sampler {
|
|
5
5
|
private _samplerCondition;
|
|
6
6
|
private _nextSampler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BatchLogRecordProcessor, SimpleLogRecordProcessor } from "@opentelemetry/sdk-logs";
|
|
2
|
-
import { SDKCollectorMode } from "./index.js";
|
|
2
|
+
import type { SDKCollectorMode } from "./index.js";
|
|
3
3
|
import { tracing } from "@opentelemetry/sdk-node";
|
|
4
4
|
export declare const LogRecordProcessorMap: Record<SDKCollectorMode, typeof SimpleLogRecordProcessor | typeof BatchLogRecordProcessor>;
|
|
5
5
|
export declare const SpanProcessorMap: Record<SDKCollectorMode, typeof tracing.SimpleSpanProcessor | typeof tracing.BatchSpanProcessor>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ogcio/o11y-sdk-node",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Opentelemetry standard instrumentation SDK for NodeJS based project",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rm -rf dist && tsc -p tsconfig.json",
|
|
9
|
+
"test": "vitest",
|
|
10
|
+
"prepublishOnly": "pnpm i && rm -rf dist && tsc -p tsconfig.json",
|
|
11
|
+
"test:unit": "vitest --project unit",
|
|
12
|
+
"test:integration": "pnpm --filter @ogcio/o11y run prepare:integration && vitest --project integration",
|
|
13
|
+
"test:integration:dryrun": "vitest --project integration"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./dist/sdk-node/index.js",
|
|
17
|
+
"./*": "./dist/*.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"observability",
|
|
24
|
+
"o11y",
|
|
25
|
+
"opentelemetry",
|
|
26
|
+
"node",
|
|
27
|
+
"nodejs",
|
|
28
|
+
"ogcio"
|
|
29
|
+
],
|
|
30
|
+
"author": "team:ogcio/observability",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@grpc/grpc-js": "^1.14.0",
|
|
34
|
+
"@opentelemetry/api": "^1.9.0",
|
|
35
|
+
"@opentelemetry/api-logs": "^0.205.0",
|
|
36
|
+
"@opentelemetry/auto-instrumentations-node": "^0.64.6",
|
|
37
|
+
"@opentelemetry/core": "^2.1.0",
|
|
38
|
+
"@opentelemetry/exporter-logs-otlp-grpc": "^0.205.0",
|
|
39
|
+
"@opentelemetry/exporter-logs-otlp-http": "^0.205.0",
|
|
40
|
+
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.205.0",
|
|
41
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.205.0",
|
|
42
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.205.0",
|
|
43
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.205.0",
|
|
44
|
+
"@opentelemetry/instrumentation": "^0.205.0",
|
|
45
|
+
"@opentelemetry/otlp-exporter-base": "^0.205.0",
|
|
46
|
+
"@opentelemetry/resources": "^2.1.0",
|
|
47
|
+
"@opentelemetry/sdk-logs": "^0.205.0",
|
|
48
|
+
"@opentelemetry/sdk-metrics": "^2.1.0",
|
|
49
|
+
"@opentelemetry/sdk-node": "^0.205.0",
|
|
50
|
+
"@opentelemetry/sdk-trace-base": "^2.1.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^24.7.0",
|
|
54
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
55
|
+
"tsx": "^4.20.6",
|
|
56
|
+
"typescript": "^5.9.3",
|
|
57
|
+
"vitest": "^3.2.4"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=20.6.0"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogcio/o11y-sdk-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Opentelemetry standard instrumentation SDK for NodeJS based project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
|
-
".": "./dist/index.js",
|
|
8
|
+
".": "./dist/sdk-node/index.js",
|
|
9
9
|
"./*": "./dist/*.js"
|
|
10
10
|
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
11
14
|
"keywords": [
|
|
12
15
|
"observability",
|
|
13
16
|
"o11y",
|
|
@@ -19,30 +22,30 @@
|
|
|
19
22
|
"author": "team:ogcio/observability",
|
|
20
23
|
"license": "ISC",
|
|
21
24
|
"dependencies": {
|
|
22
|
-
"@grpc/grpc-js": "^1.
|
|
25
|
+
"@grpc/grpc-js": "^1.14.0",
|
|
23
26
|
"@opentelemetry/api": "^1.9.0",
|
|
24
|
-
"@opentelemetry/api-logs": "^0.
|
|
25
|
-
"@opentelemetry/auto-instrumentations-node": "^0.
|
|
26
|
-
"@opentelemetry/core": "^2.0
|
|
27
|
-
"@opentelemetry/exporter-logs-otlp-grpc": "^0.
|
|
28
|
-
"@opentelemetry/exporter-logs-otlp-http": "^0.
|
|
29
|
-
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.
|
|
30
|
-
"@opentelemetry/exporter-metrics-otlp-http": "^0.
|
|
31
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.
|
|
32
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
33
|
-
"@opentelemetry/instrumentation": "^0.
|
|
34
|
-
"@opentelemetry/otlp-exporter-base": "^0.
|
|
35
|
-
"@opentelemetry/resources": "^2.0
|
|
36
|
-
"@opentelemetry/sdk-logs": "^0.
|
|
37
|
-
"@opentelemetry/sdk-metrics": "^2.0
|
|
38
|
-
"@opentelemetry/sdk-node": "^0.
|
|
39
|
-
"@opentelemetry/sdk-trace-base": "^2.0
|
|
27
|
+
"@opentelemetry/api-logs": "^0.205.0",
|
|
28
|
+
"@opentelemetry/auto-instrumentations-node": "^0.64.6",
|
|
29
|
+
"@opentelemetry/core": "^2.1.0",
|
|
30
|
+
"@opentelemetry/exporter-logs-otlp-grpc": "^0.205.0",
|
|
31
|
+
"@opentelemetry/exporter-logs-otlp-http": "^0.205.0",
|
|
32
|
+
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.205.0",
|
|
33
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.205.0",
|
|
34
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.205.0",
|
|
35
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.205.0",
|
|
36
|
+
"@opentelemetry/instrumentation": "^0.205.0",
|
|
37
|
+
"@opentelemetry/otlp-exporter-base": "^0.205.0",
|
|
38
|
+
"@opentelemetry/resources": "^2.1.0",
|
|
39
|
+
"@opentelemetry/sdk-logs": "^0.205.0",
|
|
40
|
+
"@opentelemetry/sdk-metrics": "^2.1.0",
|
|
41
|
+
"@opentelemetry/sdk-node": "^0.205.0",
|
|
42
|
+
"@opentelemetry/sdk-trace-base": "^2.1.0"
|
|
40
43
|
},
|
|
41
44
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^24.
|
|
45
|
+
"@types/node": "^24.7.0",
|
|
43
46
|
"@vitest/coverage-v8": "^3.2.4",
|
|
44
|
-
"tsx": "^4.20.
|
|
45
|
-
"typescript": "^5.
|
|
47
|
+
"tsx": "^4.20.6",
|
|
48
|
+
"typescript": "^5.9.3",
|
|
46
49
|
"vitest": "^3.2.4"
|
|
47
50
|
},
|
|
48
51
|
"engines": {
|
package/CHANGELOG.md
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [0.4.1](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.4.0...@ogcio/o11y-sdk-node@v0.4.1) (2025-09-03)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
### Bug Fixes
|
|
7
|
-
|
|
8
|
-
* nested attributes redaction node sdk AB[#30826](https://github.com/ogcio/o11y/issues/30826) ([#198](https://github.com/ogcio/o11y/issues/198)) ([b926ba5](https://github.com/ogcio/o11y/commit/b926ba54097fd6028c8aa78cbe1c276ce2cc2166))
|
|
9
|
-
|
|
10
|
-
## [0.4.0](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.3.1...@ogcio/o11y-sdk-node@v0.4.0) (2025-09-02)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Features
|
|
14
|
-
|
|
15
|
-
* o11y react-sdk IP pii redaction AB[#30758](https://github.com/ogcio/o11y/issues/30758) ([#196](https://github.com/ogcio/o11y/issues/196)) ([d6bb83f](https://github.com/ogcio/o11y/commit/d6bb83fa425ffdf3fb023ec62caeef070995d07a))
|
|
16
|
-
* pii redaction refactor and ip redaction support AB[#30042](https://github.com/ogcio/o11y/issues/30042) AB[#30043](https://github.com/ogcio/o11y/issues/30043) ([#195](https://github.com/ogcio/o11y/issues/195)) ([3074693](https://github.com/ogcio/o11y/commit/307469399a7b03f3b647d85a2249e3c86dce933f))
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Miscellaneous Chores
|
|
20
|
-
|
|
21
|
-
* **deps:** bump the root-deps group across 1 directory with 16 updates ([#193](https://github.com/ogcio/o11y/issues/193)) ([c523565](https://github.com/ogcio/o11y/commit/c523565a6ba7f327473e8d93afc7d532ac220457))
|
|
22
|
-
* **deps:** bump the root-deps group across 3 directories with 34 updates ([#188](https://github.com/ogcio/o11y/issues/188)) ([c0059f3](https://github.com/ogcio/o11y/commit/c0059f33cbb5c39cf6df0f4640604796dbbd3f57))
|
|
23
|
-
|
|
24
|
-
## [0.3.1](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.3.0...@ogcio/o11y-sdk-node@v0.3.1) (2025-07-31)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
* **sdk-node:** replace Object.assign with spread operator on log redaction ([#186](https://github.com/ogcio/o11y/issues/186)) ([432f8d6](https://github.com/ogcio/o11y/commit/432f8d6aa493fd01d093f7ecdd0a9faccd0726e9))
|
|
30
|
-
|
|
31
|
-
## [0.3.0](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.2.0...@ogcio/o11y-sdk-node@v0.3.0) (2025-07-28)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
### Features
|
|
35
|
-
|
|
36
|
-
* add custom log processor for span enrich ([#102](https://github.com/ogcio/o11y/issues/102)) ([bbf8334](https://github.com/ogcio/o11y/commit/bbf83340940ed651dff63bbe7aaa52881d1e8c8c))
|
|
37
|
-
* add opentelemetry sampler ([#66](https://github.com/ogcio/o11y/issues/66)) ([48a1761](https://github.com/ogcio/o11y/commit/48a1761d68fbccf7b63e4232a62376caecf01fbc))
|
|
38
|
-
* april depedency upgrade AB[#27200](https://github.com/ogcio/o11y/issues/27200) ([#116](https://github.com/ogcio/o11y/issues/116)) ([d792fe5](https://github.com/ogcio/o11y/commit/d792fe5a783b0b495912b5bef2babfe11ef5e01d))
|
|
39
|
-
* june deps update ([#147](https://github.com/ogcio/o11y/issues/147)) ([b365a40](https://github.com/ogcio/o11y/commit/b365a4099cdfd8533ffa4948620d29f0044bbd70))
|
|
40
|
-
* late june deps update ([#154](https://github.com/ogcio/o11y/issues/154)) ([a772622](https://github.com/ogcio/o11y/commit/a7726225a59b2dbcd4326919323d935843b2f93f))
|
|
41
|
-
* may deps update ([#136](https://github.com/ogcio/o11y/issues/136)) ([3edd8b1](https://github.com/ogcio/o11y/commit/3edd8b1d823740d555fc4d93be427e9dc1438a95))
|
|
42
|
-
* o11y sdk repo setup ([#15](https://github.com/ogcio/o11y/issues/15)) ([c5816ba](https://github.com/ogcio/o11y/commit/c5816baff1454353f12539949959e84964ed6401))
|
|
43
|
-
* o11y showcase AB[#25895](https://github.com/ogcio/o11y/issues/25895) ([#84](https://github.com/ogcio/o11y/issues/84)) ([f8f10af](https://github.com/ogcio/o11y/commit/f8f10af97d9f5c188e3e65f7d62d5c673edce25a))
|
|
44
|
-
* remove pnpm test on prepublishOnly script ([#68](https://github.com/ogcio/o11y/issues/68)) ([41f6f57](https://github.com/ogcio/o11y/commit/41f6f57fa415c4f7adc29f49f983539274ef7320))
|
|
45
|
-
* **sdk-node:** add span customization AB[#25358](https://github.com/ogcio/o11y/issues/25358) ([46ba97b](https://github.com/ogcio/o11y/commit/46ba97bac4004ff326a954592f45213ce0e4d683))
|
|
46
|
-
* **sdk-node:** custom metrics ([#53](https://github.com/ogcio/o11y/issues/53)) ([3cb40b1](https://github.com/ogcio/o11y/commit/3cb40b1add3d80615c8d123d233724094559c7ff))
|
|
47
|
-
* **sdk-node:** pii detection on traces and logs ([#176](https://github.com/ogcio/o11y/issues/176)) ([3d72f94](https://github.com/ogcio/o11y/commit/3d72f941b1854278105e7c6d4c4c20248037ecd3))
|
|
48
|
-
* **sdk-node:** renaming MetricsParams interface properties AB[#26188](https://github.com/ogcio/o11y/issues/26188) ([#96](https://github.com/ogcio/o11y/issues/96)) ([244aee0](https://github.com/ogcio/o11y/commit/244aee01ae6e7f319ae7f9fdeff27eb40ee3c863))
|
|
49
|
-
* **sdk-node:** traces and span wrapping utility AB[#29532](https://github.com/ogcio/o11y/issues/29532) ([#175](https://github.com/ogcio/o11y/issues/175)) ([22398d8](https://github.com/ogcio/o11y/commit/22398d8663519e7b2152ebc8766c64bf36a709e7))
|
|
50
|
-
* update AWS secrets manager connection AB[#29565](https://github.com/ogcio/o11y/issues/29565) ([#166](https://github.com/ogcio/o11y/issues/166)) ([962c03d](https://github.com/ogcio/o11y/commit/962c03de2da4060a81aa603c355f3d60cafe3c30))
|
|
51
|
-
* upgrade to opentelemetry 2 AB[#25863](https://github.com/ogcio/o11y/issues/25863) ([#106](https://github.com/ogcio/o11y/issues/106)) ([3ff0314](https://github.com/ogcio/o11y/commit/3ff0314fef9f4d7b5db76da3b94e9035801384c7))
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### Bug Fixes
|
|
55
|
-
|
|
56
|
-
* add readme file inside submodule ([#27](https://github.com/ogcio/o11y/issues/27)) ([dc518d5](https://github.com/ogcio/o11y/commit/dc518d5dde573368443bc0f8619e80e331880c78))
|
|
57
|
-
* default attributes in resource ([#112](https://github.com/ogcio/o11y/issues/112)) ([f0f0b9d](https://github.com/ogcio/o11y/commit/f0f0b9d555ef321d31f7171e25dc4b8a5b044522))
|
|
58
|
-
* improve getMetric attributes types ([#76](https://github.com/ogcio/o11y/issues/76)) ([243649c](https://github.com/ogcio/o11y/commit/243649c4bfe750687a729fbd836772cce16e0cb1))
|
|
59
|
-
* prepublishOnly hook ([#60](https://github.com/ogcio/o11y/issues/60)) ([9fbd3ad](https://github.com/ogcio/o11y/commit/9fbd3ad0b45a1604cf2eccc26b2f8855640417a1))
|
|
60
|
-
* **sdk-node:** add waitForReady for grpc-client to handle transient init connection errors AB[#28329](https://github.com/ogcio/o11y/issues/28329) ([#144](https://github.com/ogcio/o11y/issues/144)) ([6f260da](https://github.com/ogcio/o11y/commit/6f260da15fcbcd2c629ec6d4bb9fb3592803f399))
|
|
61
|
-
* **sdk-node:** allow graceful shutdown of instrumentation on SIGTERM AB[#28329](https://github.com/ogcio/o11y/issues/28329) ([#151](https://github.com/ogcio/o11y/issues/151)) ([991ee15](https://github.com/ogcio/o11y/commit/991ee1559898b721823cb9d1e0490e2ad82e6d0a))
|
|
62
|
-
* **sdk-node:** update sdk init examples AB[#28329](https://github.com/ogcio/o11y/issues/28329) ([#146](https://github.com/ogcio/o11y/issues/146)) ([81de295](https://github.com/ogcio/o11y/commit/81de2957a7bef7430a46c6677f3c876255ef7c88))
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
### Miscellaneous Chores
|
|
66
|
-
|
|
67
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.10 ([#113](https://github.com/ogcio/o11y/issues/113)) ([5474a1d](https://github.com/ogcio/o11y/commit/5474a1dd715dcfcd1da7ec46ea17da3b369529ac))
|
|
68
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.11 ([#137](https://github.com/ogcio/o11y/issues/137)) ([90e42ba](https://github.com/ogcio/o11y/commit/90e42ba5b76d7bd89cbffd011f5a2fda1b3e4fe0))
|
|
69
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.12 ([#148](https://github.com/ogcio/o11y/issues/148)) ([d495182](https://github.com/ogcio/o11y/commit/d495182d04312a62298b3e5fb18d55c32743c14e))
|
|
70
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.13 ([#152](https://github.com/ogcio/o11y/issues/152)) ([5903e22](https://github.com/ogcio/o11y/commit/5903e22c7da8219661c6b9f78a2b3c330bc51823))
|
|
71
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.3 ([#30](https://github.com/ogcio/o11y/issues/30)) ([842da9b](https://github.com/ogcio/o11y/commit/842da9b6500c03b0c3a11165a78168724bd0a0f5))
|
|
72
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.4 ([#61](https://github.com/ogcio/o11y/issues/61)) ([770873e](https://github.com/ogcio/o11y/commit/770873e7c7d08289e7a8ab46bc801294e9d055bf))
|
|
73
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.5 ([#67](https://github.com/ogcio/o11y/issues/67)) ([8ffc453](https://github.com/ogcio/o11y/commit/8ffc45380b76cf59dcbdd86c6f0501b4526948e7))
|
|
74
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.6 ([#70](https://github.com/ogcio/o11y/issues/70)) ([32308de](https://github.com/ogcio/o11y/commit/32308de75b80db1b2def63d2b5fcf80328278712))
|
|
75
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.7 ([#75](https://github.com/ogcio/o11y/issues/75)) ([5598269](https://github.com/ogcio/o11y/commit/55982690a5a21a18120572a8760f6630aeda2bd1))
|
|
76
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.8 ([#86](https://github.com/ogcio/o11y/issues/86)) ([c0956d4](https://github.com/ogcio/o11y/commit/c0956d4eceabb415d72addf5e2b6f5efd5423f62))
|
|
77
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.1.0-beta.9 ([#105](https://github.com/ogcio/o11y/issues/105)) ([51e854e](https://github.com/ogcio/o11y/commit/51e854e55753bcca33bdc5bc489e9abe2bdee21c))
|
|
78
|
-
* **auto-release:** release @ogcio/o11y-sdk-node 0.2.0-beta.13 ([#155](https://github.com/ogcio/o11y/issues/155)) ([a918198](https://github.com/ogcio/o11y/commit/a91819823da965d160dc0a9a302cd0fea88e68d2))
|
|
79
|
-
* **deps-dev:** bump @types/node to `24` AB[#29294](https://github.com/ogcio/o11y/issues/29294) ([3c74c28](https://github.com/ogcio/o11y/commit/3c74c28af41af8403220368ac72a90e40c3e15ae))
|
|
80
|
-
* **deps-dev:** bump the root-deps group across 1 directory with 3 updates ([#150](https://github.com/ogcio/o11y/issues/150)) ([9d574d1](https://github.com/ogcio/o11y/commit/9d574d1af0964fc4af991d677b443015921d93f6))
|
|
81
|
-
* **deps:** bump the root-deps group across 1 directory with 6 updates ([#31](https://github.com/ogcio/o11y/issues/31)) ([591e15f](https://github.com/ogcio/o11y/commit/591e15fcfd8f633f7809de7ca0bfe179251609e7))
|
|
82
|
-
* **deps:** bump the root-deps group across 3 directories with 10 updates ([#64](https://github.com/ogcio/o11y/issues/64)) ([bde04e3](https://github.com/ogcio/o11y/commit/bde04e3d67a6b860a11eca0229dc76e7bbaad13a))
|
|
83
|
-
* **deps:** bump the root-deps group across 3 directories with 28 updates ([#74](https://github.com/ogcio/o11y/issues/74)) ([b67190c](https://github.com/ogcio/o11y/commit/b67190c18c175770c1661c1c70dcf9990c9cb275))
|
|
84
|
-
* dx improvements ([#22](https://github.com/ogcio/o11y/issues/22)) ([1698662](https://github.com/ogcio/o11y/commit/1698662cb2a96220f36959c30480db06a1be2e61))
|
|
85
|
-
* migrate from node:test to vitest ([#20](https://github.com/ogcio/o11y/issues/20)) ([fd1300b](https://github.com/ogcio/o11y/commit/fd1300b1a72c5fac972ccd42b7b05ad125d6e33e))
|
|
86
|
-
* packages updates ([#44](https://github.com/ogcio/o11y/issues/44)) ([11ecc75](https://github.com/ogcio/o11y/commit/11ecc75e7a4e8983dd0f8a9f499e8cb8c21b00ee))
|
|
87
|
-
* **release:** release @ogcio/o11y-sdk-node 0.1.0-beta.1 ([#25](https://github.com/ogcio/o11y/issues/25)) ([0c17f98](https://github.com/ogcio/o11y/commit/0c17f980cf782ab02e1b5243a50e5d37772a590d))
|
|
88
|
-
* **release:** release @ogcio/o11y-sdk-node 0.1.0-beta.2 ([#28](https://github.com/ogcio/o11y/issues/28)) ([1468e48](https://github.com/ogcio/o11y/commit/1468e4832ad757a733e54d2f110d85345904ec50))
|
|
89
|
-
* removed deprecated dep is-url from react-sdk ([#77](https://github.com/ogcio/o11y/issues/77)) ([4ef27d3](https://github.com/ogcio/o11y/commit/4ef27d3a5d01323ea1abdd7659900d4a2a31adce))
|
|
90
|
-
* update dependencies ([#91](https://github.com/ogcio/o11y/issues/91)) ([a16a8cd](https://github.com/ogcio/o11y/commit/a16a8cd1b072f7f6906f8a77b9bab2a4dad9fdee))
|
|
91
|
-
* update integration tests and docs ([#171](https://github.com/ogcio/o11y/issues/171)) ([d03b2a5](https://github.com/ogcio/o11y/commit/d03b2a54d1832aa160b9e8ed3cc28fc72005475c))
|
|
92
|
-
|
|
93
|
-
## [0.2.0](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.13...@ogcio/o11y-sdk-node@v0.2.0) (2025-06-24)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Features
|
|
97
|
-
|
|
98
|
-
* late june deps update ([#154](https://github.com/ogcio/o11y/issues/154)) ([a772622](https://github.com/ogcio/o11y/commit/a7726225a59b2dbcd4326919323d935843b2f93f))
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### Miscellaneous Chores
|
|
102
|
-
|
|
103
|
-
* **deps-dev:** bump @types/node to `24` AB[#29294](https://github.com/ogcio/o11y/issues/29294) ([3c74c28](https://github.com/ogcio/o11y/commit/3c74c28af41af8403220368ac72a90e40c3e15ae))
|
|
104
|
-
|
|
105
|
-
## [0.1.0-beta.13](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.12...@ogcio/o11y-sdk-node@v0.1.0-beta.13) (2025-06-16)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Bug Fixes
|
|
109
|
-
|
|
110
|
-
* **sdk-node:** allow graceful shutdown of instrumentation on SIGTERM AB[#28329](https://github.com/ogcio/o11y/issues/28329) ([#151](https://github.com/ogcio/o11y/issues/151)) ([991ee15](https://github.com/ogcio/o11y/commit/991ee1559898b721823cb9d1e0490e2ad82e6d0a))
|
|
111
|
-
|
|
112
|
-
## [0.1.0-beta.12](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.11...@ogcio/o11y-sdk-node@v0.1.0-beta.12) (2025-06-04)
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Features
|
|
116
|
-
|
|
117
|
-
* add custom log processor for span enrich ([#102](https://github.com/ogcio/o11y/issues/102)) ([bbf8334](https://github.com/ogcio/o11y/commit/bbf83340940ed651dff63bbe7aaa52881d1e8c8c))
|
|
118
|
-
* add opentelemetry sampler ([#66](https://github.com/ogcio/o11y/issues/66)) ([48a1761](https://github.com/ogcio/o11y/commit/48a1761d68fbccf7b63e4232a62376caecf01fbc))
|
|
119
|
-
* april depedency upgrade AB[#27200](https://github.com/ogcio/o11y/issues/27200) ([#116](https://github.com/ogcio/o11y/issues/116)) ([d792fe5](https://github.com/ogcio/o11y/commit/d792fe5a783b0b495912b5bef2babfe11ef5e01d))
|
|
120
|
-
* june deps update ([#147](https://github.com/ogcio/o11y/issues/147)) ([b365a40](https://github.com/ogcio/o11y/commit/b365a4099cdfd8533ffa4948620d29f0044bbd70))
|
|
121
|
-
* may deps update ([#136](https://github.com/ogcio/o11y/issues/136)) ([3edd8b1](https://github.com/ogcio/o11y/commit/3edd8b1d823740d555fc4d93be427e9dc1438a95))
|
|
122
|
-
* o11y sdk repo setup ([#15](https://github.com/ogcio/o11y/issues/15)) ([c5816ba](https://github.com/ogcio/o11y/commit/c5816baff1454353f12539949959e84964ed6401))
|
|
123
|
-
* o11y showcase AB[#25895](https://github.com/ogcio/o11y/issues/25895) ([#84](https://github.com/ogcio/o11y/issues/84)) ([f8f10af](https://github.com/ogcio/o11y/commit/f8f10af97d9f5c188e3e65f7d62d5c673edce25a))
|
|
124
|
-
* remove pnpm test on prepublishOnly script ([#68](https://github.com/ogcio/o11y/issues/68)) ([41f6f57](https://github.com/ogcio/o11y/commit/41f6f57fa415c4f7adc29f49f983539274ef7320))
|
|
125
|
-
* **sdk-node:** add span customization AB[#25358](https://github.com/ogcio/o11y/issues/25358) ([46ba97b](https://github.com/ogcio/o11y/commit/46ba97bac4004ff326a954592f45213ce0e4d683))
|
|
126
|
-
* **sdk-node:** custom metrics ([#53](https://github.com/ogcio/o11y/issues/53)) ([3cb40b1](https://github.com/ogcio/o11y/commit/3cb40b1add3d80615c8d123d233724094559c7ff))
|
|
127
|
-
* **sdk-node:** renaming MetricsParams interface properties AB[#26188](https://github.com/ogcio/o11y/issues/26188) ([#96](https://github.com/ogcio/o11y/issues/96)) ([244aee0](https://github.com/ogcio/o11y/commit/244aee01ae6e7f319ae7f9fdeff27eb40ee3c863))
|
|
128
|
-
* upgrade to opentelemetry 2 AB[#25863](https://github.com/ogcio/o11y/issues/25863) ([#106](https://github.com/ogcio/o11y/issues/106)) ([3ff0314](https://github.com/ogcio/o11y/commit/3ff0314fef9f4d7b5db76da3b94e9035801384c7))
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
### Bug Fixes
|
|
132
|
-
|
|
133
|
-
* add readme file inside submodule ([#27](https://github.com/ogcio/o11y/issues/27)) ([dc518d5](https://github.com/ogcio/o11y/commit/dc518d5dde573368443bc0f8619e80e331880c78))
|
|
134
|
-
* default attributes in resource ([#112](https://github.com/ogcio/o11y/issues/112)) ([f0f0b9d](https://github.com/ogcio/o11y/commit/f0f0b9d555ef321d31f7171e25dc4b8a5b044522))
|
|
135
|
-
* improve getMetric attributes types ([#76](https://github.com/ogcio/o11y/issues/76)) ([243649c](https://github.com/ogcio/o11y/commit/243649c4bfe750687a729fbd836772cce16e0cb1))
|
|
136
|
-
* prepublishOnly hook ([#60](https://github.com/ogcio/o11y/issues/60)) ([9fbd3ad](https://github.com/ogcio/o11y/commit/9fbd3ad0b45a1604cf2eccc26b2f8855640417a1))
|
|
137
|
-
* **sdk-node:** add waitForReady for grpc-client to handle transient init connection errors AB[#28329](https://github.com/ogcio/o11y/issues/28329) ([#144](https://github.com/ogcio/o11y/issues/144)) ([6f260da](https://github.com/ogcio/o11y/commit/6f260da15fcbcd2c629ec6d4bb9fb3592803f399))
|
|
138
|
-
* **sdk-node:** update sdk init examples AB[#28329](https://github.com/ogcio/o11y/issues/28329) ([#146](https://github.com/ogcio/o11y/issues/146)) ([81de295](https://github.com/ogcio/o11y/commit/81de2957a7bef7430a46c6677f3c876255ef7c88))
|
|
139
|
-
|
|
140
|
-
## [0.1.0-beta.11](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.10...@ogcio/o11y-sdk-node@v0.1.0-beta.11) (2025-05-21)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Features
|
|
144
|
-
|
|
145
|
-
* may deps update ([#136](https://github.com/ogcio/o11y/issues/136)) ([3edd8b1](https://github.com/ogcio/o11y/commit/3edd8b1d823740d555fc4d93be427e9dc1438a95))
|
|
146
|
-
|
|
147
|
-
## [0.1.0-beta.10](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.9...@ogcio/o11y-sdk-node@v0.1.0-beta.10) (2025-04-09)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### Features
|
|
151
|
-
|
|
152
|
-
* april depedency upgrade AB[#27200](https://github.com/ogcio/o11y/issues/27200) ([#116](https://github.com/ogcio/o11y/issues/116)) ([d792fe5](https://github.com/ogcio/o11y/commit/d792fe5a783b0b495912b5bef2babfe11ef5e01d))
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
### Bug Fixes
|
|
156
|
-
|
|
157
|
-
* default attributes in resource ([#112](https://github.com/ogcio/o11y/issues/112)) ([f0f0b9d](https://github.com/ogcio/o11y/commit/f0f0b9d555ef321d31f7171e25dc4b8a5b044522))
|
|
158
|
-
|
|
159
|
-
## [0.1.0-beta.9](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.8...@ogcio/o11y-sdk-node@v0.1.0-beta.9) (2025-03-24)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### Features
|
|
163
|
-
|
|
164
|
-
* add custom log processor for span enrich ([#102](https://github.com/ogcio/o11y/issues/102)) ([bbf8334](https://github.com/ogcio/o11y/commit/bbf83340940ed651dff63bbe7aaa52881d1e8c8c))
|
|
165
|
-
* upgrade to opentelemetry 2 AB[#25863](https://github.com/ogcio/o11y/issues/25863) ([#106](https://github.com/ogcio/o11y/issues/106)) ([3ff0314](https://github.com/ogcio/o11y/commit/3ff0314fef9f4d7b5db76da3b94e9035801384c7))
|
|
166
|
-
|
|
167
|
-
## [0.1.0-beta.8](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.7...@ogcio/o11y-sdk-node@v0.1.0-beta.8) (2025-03-07)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### Features
|
|
171
|
-
|
|
172
|
-
* o11y showcase AB[#25895](https://github.com/ogcio/o11y/issues/25895) ([#84](https://github.com/ogcio/o11y/issues/84)) ([f8f10af](https://github.com/ogcio/o11y/commit/f8f10af97d9f5c188e3e65f7d62d5c673edce25a))
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Bug Fixes
|
|
176
|
-
|
|
177
|
-
* improve getMetric attributes types ([#76](https://github.com/ogcio/o11y/issues/76)) ([243649c](https://github.com/ogcio/o11y/commit/243649c4bfe750687a729fbd836772cce16e0cb1))
|
|
178
|
-
|
|
179
|
-
## [0.1.0-beta.7](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.6...@ogcio/o11y-sdk-node@v0.1.0-beta.7) (2025-02-18)
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
### Features
|
|
183
|
-
|
|
184
|
-
* **sdk-node:** add span customization AB[#25358](https://github.com/ogcio/o11y/issues/25358) ([46ba97b](https://github.com/ogcio/o11y/commit/46ba97bac4004ff326a954592f45213ce0e4d683))
|
|
185
|
-
|
|
186
|
-
## [0.1.0-beta.6](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.5...@ogcio/o11y-sdk-node@v0.1.0-beta.6) (2025-02-06)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
### Features
|
|
190
|
-
|
|
191
|
-
* remove pnpm test on prepublishOnly script ([#68](https://github.com/ogcio/o11y/issues/68)) ([41f6f57](https://github.com/ogcio/o11y/commit/41f6f57fa415c4f7adc29f49f983539274ef7320))
|
|
192
|
-
|
|
193
|
-
## [0.1.0-beta.5](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.4...@ogcio/o11y-sdk-node@v0.1.0-beta.5) (2025-02-06)
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
### Features
|
|
197
|
-
|
|
198
|
-
* add opentelemetry sampler ([#65](https://github.com/ogcio/o11y/issues/65)) ([66793fd](https://github.com/ogcio/o11y/commit/66793fd36bf071e592e3b455f2e33ad9d5b2db37))
|
|
199
|
-
|
|
200
|
-
## [0.1.0-beta.4](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.1.0-beta.3...@ogcio/o11y-sdk-node@v0.1.0-beta.4) (2025-01-29)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Bug Fixes
|
|
204
|
-
|
|
205
|
-
* prepublishOnly hook ([#60](https://github.com/ogcio/o11y/issues/60)) ([9fbd3ad](https://github.com/ogcio/o11y/commit/9fbd3ad0b45a1604cf2eccc26b2f8855640417a1))
|
|
206
|
-
|
|
207
|
-
## [0.1.0-beta.3](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@0.1.0-beta.2...@ogcio/o11y-sdk-node@v0.1.0-beta.3) (2025-01-28)
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
### Features
|
|
211
|
-
|
|
212
|
-
* **sdk-node:** custom metrics ([#53](https://github.com/ogcio/o11y/issues/53)) ([3cb40b1](https://github.com/ogcio/o11y/commit/3cb40b1add3d80615c8d123d233724094559c7ff))
|
|
213
|
-
|
|
214
|
-
## [0.1.0-beta.2](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@0.1.0-beta.1...@ogcio/o11y-sdk-node@0.1.0-beta.2) (2024-11-28)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
### Bug Fixes
|
|
218
|
-
|
|
219
|
-
* Add readme file inside submodule ([#27](https://github.com/ogcio/o11y/issues/27)) ([dc518d5](https://github.com/ogcio/o11y/commit/dc518d5dde573368443bc0f8619e80e331880c78))
|
|
220
|
-
|
|
221
|
-
## [0.1.0-beta.1](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@0.0.1-beta.1...@ogcio/o11y-sdk-node@0.1.0-beta.1) (2024-11-27)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
### Features
|
|
225
|
-
|
|
226
|
-
* O11y sdk repo setup ([#15](https://github.com/ogcio/o11y/issues/15)) ([c5816ba](https://github.com/ogcio/o11y/commit/c5816baff1454353f12539949959e84964ed6401))
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { NodeSDKConfig } from "../index.js";
|
|
2
|
-
import { EnrichLogProcessor } from "../processor/enrich-logger-processor.js";
|
|
3
|
-
import { EnrichSpanProcessor } from "../processor/enrich-span-processor.js";
|
|
4
|
-
export declare function _spansProcessorConfig(config: NodeSDKConfig): EnrichSpanProcessor[];
|
|
5
|
-
export declare function _logsProcessorConfig(config: NodeSDKConfig): EnrichLogProcessor[];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { AnyValue } from "@opentelemetry/api-logs";
|
|
2
|
-
import { Redactor } from "./redactors/index.js";
|
|
3
|
-
export type PIISource = "trace" | "log" | "metric";
|
|
4
|
-
/**
|
|
5
|
-
* Checks whether a string contains URI-encoded components.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} value - The string to inspect.
|
|
8
|
-
* @returns {boolean} `true` if the string is encoded, `false` otherwise.
|
|
9
|
-
*/
|
|
10
|
-
export declare function _containsEncodedComponents(value: string): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Cleans a string by redacting configured PIIs and emitting metrics for redacted values.
|
|
13
|
-
*
|
|
14
|
-
* If the string is URL-encoded, it will be decoded before redaction.
|
|
15
|
-
*
|
|
16
|
-
* @template T
|
|
17
|
-
*
|
|
18
|
-
* @param {string} value - The input value to sanitize.
|
|
19
|
-
* @param {"trace" | "log"} source - The source context of the input, used in metrics.
|
|
20
|
-
* @param {Redactor[]} redactors - The string processors containing the redaction logic.
|
|
21
|
-
*
|
|
22
|
-
* @returns {string} The cleaned string with any configured PII replaced by `[REDACTED PII_TYPE]`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function _cleanStringPII(value: string, source: PIISource, redactors: Redactor[]): string;
|
|
25
|
-
export declare function _recursiveObjectClean<T extends AnyValue>(value: T, source: PIISource, redactors: Redactor[]): T;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Redacts provided input and collects metadata metrics about redacted email domains,
|
|
3
|
-
* data source and kind.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} value The input string potentially containing email addresses.
|
|
6
|
-
* @returns {string} the redacted value
|
|
7
|
-
*/
|
|
8
|
-
export declare const emailRedactor: (value: string, source: string, kind: string) => string;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { _getPIICounterRedactionMetric } from "../../shared-metrics.js";
|
|
2
|
-
const EMAIL_REGEX = /[\p{L}\p{N}._%+-]+@((?:[\p{L}\p{N}-]+\.)+[\p{L}]{2,})/giu;
|
|
3
|
-
/**
|
|
4
|
-
* Redacts all email addresses in the input string and collects metadata.
|
|
5
|
-
*
|
|
6
|
-
* @param {string} value The input string potentially containing email addresses.
|
|
7
|
-
* @returns {{
|
|
8
|
-
* redacted: string,
|
|
9
|
-
* count: number,
|
|
10
|
-
* domains: Record<string, number>
|
|
11
|
-
* }}
|
|
12
|
-
*
|
|
13
|
-
* An object containing:
|
|
14
|
-
* - `redacted`: the string with email addresses replaced by `[REDACTED EMAIL]`
|
|
15
|
-
* - `count`: total number of email addresses redacted
|
|
16
|
-
* - `domains`: a map of domain names to the number of times they were redacted
|
|
17
|
-
*/
|
|
18
|
-
function _redactEmails(value) {
|
|
19
|
-
let count = 0;
|
|
20
|
-
const domains = {};
|
|
21
|
-
const redacted = value.replace(EMAIL_REGEX, (_, domain) => {
|
|
22
|
-
count++;
|
|
23
|
-
domains[domain] = (domains[domain] || 0) + 1;
|
|
24
|
-
return "[REDACTED EMAIL]";
|
|
25
|
-
});
|
|
26
|
-
return { redacted, count, domains };
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Redacts provided input and collects metadata metrics about redacted email domains,
|
|
30
|
-
* data source and kind.
|
|
31
|
-
*
|
|
32
|
-
* @param {string} value The input string potentially containing email addresses.
|
|
33
|
-
* @returns {string} the redacted value
|
|
34
|
-
*/
|
|
35
|
-
export const emailRedactor = (value, source, kind) => {
|
|
36
|
-
const { redacted, count, domains } = _redactEmails(value);
|
|
37
|
-
if (count > 0) {
|
|
38
|
-
for (const [domain, domainCount] of Object.entries(domains)) {
|
|
39
|
-
_getPIICounterRedactionMetric().add(domainCount, {
|
|
40
|
-
pii_type: "email",
|
|
41
|
-
redaction_source: source,
|
|
42
|
-
pii_email_domain: domain,
|
|
43
|
-
pii_format: kind,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return redacted;
|
|
48
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { NodeSDKConfig } from "../../../index.js";
|
|
2
|
-
export type Redactor = (value: string, source: string, kind: string) => string;
|
|
3
|
-
export type RedactorKeys = keyof NonNullable<NodeSDKConfig["detection"]>;
|
|
4
|
-
export declare const redactors: Record<RedactorKeys, Redactor>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Redacts provided input and collects metadata metrics about redacted IPs,
|
|
3
|
-
* data source and kind.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} value The input string potentially containing IP addresses.
|
|
6
|
-
* @param {string} source The source of the attribute being redacted (log, span, metric).
|
|
7
|
-
* @param {string} kind The type of the data structure containing the PII
|
|
8
|
-
* @returns {string} the redacted value
|
|
9
|
-
*/
|
|
10
|
-
export declare const ipRedactor: (value: string, source: string, kind: string) => string;
|