@ogcio/o11y-sdk-node 0.4.2 → 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.
Files changed (140) hide show
  1. package/dist/sdk-core/index.d.ts +1 -0
  2. package/dist/sdk-core/index.js +1 -0
  3. package/dist/sdk-core/lib/index.d.ts +2 -0
  4. package/dist/sdk-core/lib/index.js +2 -0
  5. package/dist/sdk-core/lib/redaction/basic-redactor.d.ts +7 -0
  6. package/dist/sdk-core/lib/redaction/basic-redactor.js +18 -0
  7. package/dist/sdk-core/lib/redaction/email-redactor.d.ts +8 -0
  8. package/dist/sdk-core/lib/redaction/email-redactor.js +17 -0
  9. package/dist/sdk-core/lib/redaction/index.d.ts +9 -0
  10. package/dist/sdk-core/lib/redaction/index.js +4 -0
  11. package/dist/sdk-core/lib/redaction/ip-redactor.d.ts +9 -0
  12. package/dist/sdk-core/lib/redaction/ip-redactor.js +23 -0
  13. package/dist/sdk-core/lib/redaction/ppsn-redactor.d.ts +8 -0
  14. package/dist/sdk-core/lib/redaction/ppsn-redactor.js +17 -0
  15. package/dist/sdk-core/lib/utils/data-structures.d.ts +15 -0
  16. package/dist/{lib/internals/redaction/pii-detection.js → sdk-core/lib/utils/data-structures.js} +4 -27
  17. package/dist/sdk-core/lib/utils/index.d.ts +2 -0
  18. package/dist/sdk-core/lib/utils/index.js +2 -0
  19. package/dist/sdk-core/lib/utils/string-decoding.d.ts +7 -0
  20. package/dist/sdk-core/lib/utils/string-decoding.js +22 -0
  21. package/dist/{index.d.ts → sdk-node/index.d.ts} +1 -0
  22. package/dist/{index.js → sdk-node/index.js} +1 -0
  23. package/dist/{lib → sdk-node/lib}/config-manager.d.ts +1 -1
  24. package/dist/sdk-node/lib/exporter/console.d.ts +3 -0
  25. package/dist/sdk-node/lib/exporter/grpc.d.ts +3 -0
  26. package/dist/sdk-node/lib/exporter/http.d.ts +3 -0
  27. package/dist/{lib → sdk-node/lib}/exporter/index.d.ts +2 -2
  28. package/dist/{lib → sdk-node/lib}/exporter/pii-exporter-decorator.d.ts +5 -5
  29. package/dist/{lib → sdk-node/lib}/exporter/pii-exporter-decorator.js +6 -2
  30. package/dist/sdk-node/lib/exporter/processor-config.d.ts +7 -0
  31. package/dist/{lib → sdk-node/lib}/exporter/processor-config.js +4 -0
  32. package/dist/{lib → sdk-node/lib}/index.d.ts +11 -0
  33. package/dist/{lib → sdk-node/lib}/instrumentation.node.js +1 -1
  34. package/dist/sdk-node/lib/internals/redaction/redactors/email.d.ts +8 -0
  35. package/dist/sdk-node/lib/internals/redaction/redactors/email.js +19 -0
  36. package/dist/sdk-node/lib/internals/redaction/redactors/index.d.ts +16 -0
  37. package/dist/sdk-node/lib/internals/redaction/redactors/index.js +13 -0
  38. package/dist/sdk-node/lib/internals/redaction/redactors/ip.d.ts +8 -0
  39. package/dist/sdk-node/lib/internals/redaction/redactors/ip.js +20 -0
  40. package/dist/sdk-node/lib/internals/redaction/redactors/ppsn.d.ts +8 -0
  41. package/dist/sdk-node/lib/internals/redaction/redactors/ppsn.js +18 -0
  42. package/dist/{lib → sdk-node/lib}/metrics.d.ts +1 -1
  43. package/dist/{lib → sdk-node/lib}/processor/enrich-logger-processor.d.ts +3 -3
  44. package/dist/{lib → sdk-node/lib}/processor/enrich-span-processor.d.ts +3 -3
  45. package/dist/sdk-node/lib/processor/nextjs-logger-processor.d.ts +7 -0
  46. package/dist/sdk-node/lib/processor/nextjs-logger-processor.js +30 -0
  47. package/dist/sdk-node/lib/processor/nextjs-span-processor.d.ts +8 -0
  48. package/dist/sdk-node/lib/processor/nextjs-span-processor.js +25 -0
  49. package/dist/{lib → sdk-node/lib}/resource.d.ts +2 -2
  50. package/dist/{lib → sdk-node/lib}/traces.d.ts +1 -1
  51. package/dist/{lib → sdk-node/lib}/traces.js +1 -1
  52. package/dist/{lib → sdk-node/lib}/url-sampler.d.ts +3 -3
  53. package/dist/{lib → sdk-node/lib}/utils.d.ts +1 -1
  54. package/dist/sdk-node/package.json +62 -0
  55. package/package.json +25 -22
  56. package/CHANGELOG.md +0 -233
  57. package/dist/lib/exporter/console.d.ts +0 -3
  58. package/dist/lib/exporter/grpc.d.ts +0 -3
  59. package/dist/lib/exporter/http.d.ts +0 -3
  60. package/dist/lib/exporter/processor-config.d.ts +0 -5
  61. package/dist/lib/internals/redaction/pii-detection.d.ts +0 -25
  62. package/dist/lib/internals/redaction/redactors/email.d.ts +0 -8
  63. package/dist/lib/internals/redaction/redactors/email.js +0 -48
  64. package/dist/lib/internals/redaction/redactors/index.d.ts +0 -4
  65. package/dist/lib/internals/redaction/redactors/index.js +0 -6
  66. package/dist/lib/internals/redaction/redactors/ip.d.ts +0 -10
  67. package/dist/lib/internals/redaction/redactors/ip.js +0 -54
  68. package/dist/lib/internals/shared-metrics.d.ts +0 -7
  69. package/dist/lib/internals/shared-metrics.js +0 -18
  70. package/dist/package.json +0 -59
  71. package/dist/vitest.config.d.ts +0 -2
  72. package/dist/vitest.config.js +0 -45
  73. package/index.ts +0 -9
  74. package/lib/config-manager.ts +0 -12
  75. package/lib/exporter/console.ts +0 -33
  76. package/lib/exporter/grpc.ts +0 -65
  77. package/lib/exporter/http.ts +0 -56
  78. package/lib/exporter/index.ts +0 -9
  79. package/lib/exporter/pii-exporter-decorator.ts +0 -187
  80. package/lib/exporter/processor-config.ts +0 -23
  81. package/lib/index.ts +0 -118
  82. package/lib/instrumentation.node.ts +0 -115
  83. package/lib/internals/hooks.ts +0 -14
  84. package/lib/internals/redaction/pii-detection.ts +0 -113
  85. package/lib/internals/redaction/redactors/email.ts +0 -58
  86. package/lib/internals/redaction/redactors/index.ts +0 -12
  87. package/lib/internals/redaction/redactors/ip.ts +0 -68
  88. package/lib/internals/shared-metrics.ts +0 -34
  89. package/lib/metrics.ts +0 -75
  90. package/lib/processor/enrich-logger-processor.ts +0 -34
  91. package/lib/processor/enrich-span-processor.ts +0 -39
  92. package/lib/resource.ts +0 -30
  93. package/lib/traces.ts +0 -78
  94. package/lib/url-sampler.ts +0 -52
  95. package/lib/utils.ts +0 -22
  96. package/test/config-manager.test.ts +0 -34
  97. package/test/exporter/pii-exporter-decorator.test.ts +0 -88
  98. package/test/index.test.ts +0 -70
  99. package/test/integration/README.md +0 -74
  100. package/test/integration/docker-utils.sh +0 -214
  101. package/test/integration/main.sh +0 -52
  102. package/test/integration/teardown.sh +0 -7
  103. package/test/integration/test_fastify-o11y-pii-enabled/http-tracing.integration.test.ts +0 -56
  104. package/test/integration/test_fastify-o11y-pii-enabled/pii.integration.test.ts +0 -68
  105. package/test/integration/test_fastify-o11y-pii-enabled/run.sh +0 -42
  106. package/test/integration/test_without-o11y/run.sh +0 -30
  107. package/test/integration/test_without-o11y/verify-status.integration.test.ts +0 -32
  108. package/test/internals/hooks.test.ts +0 -45
  109. package/test/internals/pii-detection.test.ts +0 -265
  110. package/test/internals/redactors/email.test.ts +0 -81
  111. package/test/internals/redactors/ip.test.ts +0 -93
  112. package/test/internals/shared-metrics.test.ts +0 -34
  113. package/test/metrics.test.ts +0 -142
  114. package/test/node-config.test.ts +0 -190
  115. package/test/processor/enrich-logger-processor.test.ts +0 -58
  116. package/test/processor/enrich-span-processor.test.ts +0 -52
  117. package/test/resource.test.ts +0 -33
  118. package/test/traces/active-span.test.ts +0 -26
  119. package/test/traces/with-span.test.ts +0 -356
  120. package/test/url-sampler.test.ts +0 -215
  121. package/test/utils/alloy-log-parser.ts +0 -53
  122. package/test/utils/mock-signals.ts +0 -144
  123. package/test/validation.test.ts +0 -103
  124. package/tsconfig.json +0 -15
  125. package/vitest.config.ts +0 -46
  126. /package/dist/{lib → sdk-node/lib}/config-manager.js +0 -0
  127. /package/dist/{lib → sdk-node/lib}/exporter/console.js +0 -0
  128. /package/dist/{lib → sdk-node/lib}/exporter/grpc.js +0 -0
  129. /package/dist/{lib → sdk-node/lib}/exporter/http.js +0 -0
  130. /package/dist/{lib → sdk-node/lib}/exporter/index.js +0 -0
  131. /package/dist/{lib → sdk-node/lib}/index.js +0 -0
  132. /package/dist/{lib → sdk-node/lib}/instrumentation.node.d.ts +0 -0
  133. /package/dist/{lib → sdk-node/lib}/internals/hooks.d.ts +0 -0
  134. /package/dist/{lib → sdk-node/lib}/internals/hooks.js +0 -0
  135. /package/dist/{lib → sdk-node/lib}/metrics.js +0 -0
  136. /package/dist/{lib → sdk-node/lib}/processor/enrich-logger-processor.js +0 -0
  137. /package/dist/{lib → sdk-node/lib}/processor/enrich-span-processor.js +0 -0
  138. /package/dist/{lib → sdk-node/lib}/resource.js +0 -0
  139. /package/dist/{lib → sdk-node/lib}/url-sampler.js +0 -0
  140. /package/dist/{lib → sdk-node/lib}/utils.js +0 -0
@@ -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 { Span, SpanOptions } from "@opentelemetry/api";
1
+ import { type Span, type SpanOptions } from "@opentelemetry/api";
2
2
  export type WithSpanParams<T> = {
3
3
  /**
4
4
  * The name of the trace the span should belong to.
@@ -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.
@@ -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.4.2",
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.13.4",
25
+ "@grpc/grpc-js": "^1.14.0",
23
26
  "@opentelemetry/api": "^1.9.0",
24
- "@opentelemetry/api-logs": "^0.203.0",
25
- "@opentelemetry/auto-instrumentations-node": "^0.62.1",
26
- "@opentelemetry/core": "^2.0.1",
27
- "@opentelemetry/exporter-logs-otlp-grpc": "^0.203.0",
28
- "@opentelemetry/exporter-logs-otlp-http": "^0.203.0",
29
- "@opentelemetry/exporter-metrics-otlp-grpc": "^0.203.0",
30
- "@opentelemetry/exporter-metrics-otlp-http": "^0.203.0",
31
- "@opentelemetry/exporter-trace-otlp-grpc": "^0.203.0",
32
- "@opentelemetry/exporter-trace-otlp-http": "^0.203.0",
33
- "@opentelemetry/instrumentation": "^0.203.0",
34
- "@opentelemetry/otlp-exporter-base": "^0.203.0",
35
- "@opentelemetry/resources": "^2.0.1",
36
- "@opentelemetry/sdk-logs": "^0.203.0",
37
- "@opentelemetry/sdk-metrics": "^2.0.1",
38
- "@opentelemetry/sdk-node": "^0.203.0",
39
- "@opentelemetry/sdk-trace-base": "^2.0.1"
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.3.0",
45
+ "@types/node": "^24.7.0",
43
46
  "@vitest/coverage-v8": "^3.2.4",
44
- "tsx": "^4.20.5",
45
- "typescript": "^5.8.3",
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,233 +0,0 @@
1
- # Changelog
2
-
3
- ## [0.4.2](https://github.com/ogcio/o11y/compare/@ogcio/o11y-sdk-node@v0.4.1...@ogcio/o11y-sdk-node@v0.4.2) (2025-09-03)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * withSpan function throws error if sdk is not initialized AB[#30828](https://github.com/ogcio/o11y/issues/30828) ([#200](https://github.com/ogcio/o11y/issues/200)) ([407b616](https://github.com/ogcio/o11y/commit/407b616590024ca4131610c7a69bacd9699f23c5))
9
-
10
- ## [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)
11
-
12
-
13
- ### Bug Fixes
14
-
15
- * 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))
16
-
17
- ## [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)
18
-
19
-
20
- ### Features
21
-
22
- * 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))
23
- * 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))
24
-
25
-
26
- ### Miscellaneous Chores
27
-
28
- * **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))
29
- * **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))
30
-
31
- ## [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)
32
-
33
-
34
- ### Bug Fixes
35
-
36
- * **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))
37
-
38
- ## [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)
39
-
40
-
41
- ### Features
42
-
43
- * add custom log processor for span enrich ([#102](https://github.com/ogcio/o11y/issues/102)) ([bbf8334](https://github.com/ogcio/o11y/commit/bbf83340940ed651dff63bbe7aaa52881d1e8c8c))
44
- * add opentelemetry sampler ([#66](https://github.com/ogcio/o11y/issues/66)) ([48a1761](https://github.com/ogcio/o11y/commit/48a1761d68fbccf7b63e4232a62376caecf01fbc))
45
- * 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))
46
- * june deps update ([#147](https://github.com/ogcio/o11y/issues/147)) ([b365a40](https://github.com/ogcio/o11y/commit/b365a4099cdfd8533ffa4948620d29f0044bbd70))
47
- * late june deps update ([#154](https://github.com/ogcio/o11y/issues/154)) ([a772622](https://github.com/ogcio/o11y/commit/a7726225a59b2dbcd4326919323d935843b2f93f))
48
- * may deps update ([#136](https://github.com/ogcio/o11y/issues/136)) ([3edd8b1](https://github.com/ogcio/o11y/commit/3edd8b1d823740d555fc4d93be427e9dc1438a95))
49
- * o11y sdk repo setup ([#15](https://github.com/ogcio/o11y/issues/15)) ([c5816ba](https://github.com/ogcio/o11y/commit/c5816baff1454353f12539949959e84964ed6401))
50
- * 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))
51
- * remove pnpm test on prepublishOnly script ([#68](https://github.com/ogcio/o11y/issues/68)) ([41f6f57](https://github.com/ogcio/o11y/commit/41f6f57fa415c4f7adc29f49f983539274ef7320))
52
- * **sdk-node:** add span customization AB[#25358](https://github.com/ogcio/o11y/issues/25358) ([46ba97b](https://github.com/ogcio/o11y/commit/46ba97bac4004ff326a954592f45213ce0e4d683))
53
- * **sdk-node:** custom metrics ([#53](https://github.com/ogcio/o11y/issues/53)) ([3cb40b1](https://github.com/ogcio/o11y/commit/3cb40b1add3d80615c8d123d233724094559c7ff))
54
- * **sdk-node:** pii detection on traces and logs ([#176](https://github.com/ogcio/o11y/issues/176)) ([3d72f94](https://github.com/ogcio/o11y/commit/3d72f941b1854278105e7c6d4c4c20248037ecd3))
55
- * **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))
56
- * **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))
57
- * 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))
58
- * 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))
59
-
60
-
61
- ### Bug Fixes
62
-
63
- * add readme file inside submodule ([#27](https://github.com/ogcio/o11y/issues/27)) ([dc518d5](https://github.com/ogcio/o11y/commit/dc518d5dde573368443bc0f8619e80e331880c78))
64
- * default attributes in resource ([#112](https://github.com/ogcio/o11y/issues/112)) ([f0f0b9d](https://github.com/ogcio/o11y/commit/f0f0b9d555ef321d31f7171e25dc4b8a5b044522))
65
- * improve getMetric attributes types ([#76](https://github.com/ogcio/o11y/issues/76)) ([243649c](https://github.com/ogcio/o11y/commit/243649c4bfe750687a729fbd836772cce16e0cb1))
66
- * prepublishOnly hook ([#60](https://github.com/ogcio/o11y/issues/60)) ([9fbd3ad](https://github.com/ogcio/o11y/commit/9fbd3ad0b45a1604cf2eccc26b2f8855640417a1))
67
- * **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))
68
- * **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))
69
- * **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))
70
-
71
-
72
- ### Miscellaneous Chores
73
-
74
- * **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))
75
- * **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))
76
- * **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))
77
- * **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))
78
- * **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))
79
- * **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))
80
- * **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))
81
- * **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))
82
- * **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))
83
- * **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))
84
- * **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))
85
- * **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))
86
- * **deps-dev:** bump @types/node to `24` AB[#29294](https://github.com/ogcio/o11y/issues/29294) ([3c74c28](https://github.com/ogcio/o11y/commit/3c74c28af41af8403220368ac72a90e40c3e15ae))
87
- * **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))
88
- * **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))
89
- * **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))
90
- * **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))
91
- * dx improvements ([#22](https://github.com/ogcio/o11y/issues/22)) ([1698662](https://github.com/ogcio/o11y/commit/1698662cb2a96220f36959c30480db06a1be2e61))
92
- * migrate from node:test to vitest ([#20](https://github.com/ogcio/o11y/issues/20)) ([fd1300b](https://github.com/ogcio/o11y/commit/fd1300b1a72c5fac972ccd42b7b05ad125d6e33e))
93
- * packages updates ([#44](https://github.com/ogcio/o11y/issues/44)) ([11ecc75](https://github.com/ogcio/o11y/commit/11ecc75e7a4e8983dd0f8a9f499e8cb8c21b00ee))
94
- * **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))
95
- * **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))
96
- * removed deprecated dep is-url from react-sdk ([#77](https://github.com/ogcio/o11y/issues/77)) ([4ef27d3](https://github.com/ogcio/o11y/commit/4ef27d3a5d01323ea1abdd7659900d4a2a31adce))
97
- * update dependencies ([#91](https://github.com/ogcio/o11y/issues/91)) ([a16a8cd](https://github.com/ogcio/o11y/commit/a16a8cd1b072f7f6906f8a77b9bab2a4dad9fdee))
98
- * update integration tests and docs ([#171](https://github.com/ogcio/o11y/issues/171)) ([d03b2a5](https://github.com/ogcio/o11y/commit/d03b2a54d1832aa160b9e8ed3cc28fc72005475c))
99
-
100
- ## [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)
101
-
102
-
103
- ### Features
104
-
105
- * late june deps update ([#154](https://github.com/ogcio/o11y/issues/154)) ([a772622](https://github.com/ogcio/o11y/commit/a7726225a59b2dbcd4326919323d935843b2f93f))
106
-
107
-
108
- ### Miscellaneous Chores
109
-
110
- * **deps-dev:** bump @types/node to `24` AB[#29294](https://github.com/ogcio/o11y/issues/29294) ([3c74c28](https://github.com/ogcio/o11y/commit/3c74c28af41af8403220368ac72a90e40c3e15ae))
111
-
112
- ## [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)
113
-
114
-
115
- ### Bug Fixes
116
-
117
- * **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))
118
-
119
- ## [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)
120
-
121
-
122
- ### Features
123
-
124
- * add custom log processor for span enrich ([#102](https://github.com/ogcio/o11y/issues/102)) ([bbf8334](https://github.com/ogcio/o11y/commit/bbf83340940ed651dff63bbe7aaa52881d1e8c8c))
125
- * add opentelemetry sampler ([#66](https://github.com/ogcio/o11y/issues/66)) ([48a1761](https://github.com/ogcio/o11y/commit/48a1761d68fbccf7b63e4232a62376caecf01fbc))
126
- * 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))
127
- * june deps update ([#147](https://github.com/ogcio/o11y/issues/147)) ([b365a40](https://github.com/ogcio/o11y/commit/b365a4099cdfd8533ffa4948620d29f0044bbd70))
128
- * may deps update ([#136](https://github.com/ogcio/o11y/issues/136)) ([3edd8b1](https://github.com/ogcio/o11y/commit/3edd8b1d823740d555fc4d93be427e9dc1438a95))
129
- * o11y sdk repo setup ([#15](https://github.com/ogcio/o11y/issues/15)) ([c5816ba](https://github.com/ogcio/o11y/commit/c5816baff1454353f12539949959e84964ed6401))
130
- * 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))
131
- * remove pnpm test on prepublishOnly script ([#68](https://github.com/ogcio/o11y/issues/68)) ([41f6f57](https://github.com/ogcio/o11y/commit/41f6f57fa415c4f7adc29f49f983539274ef7320))
132
- * **sdk-node:** add span customization AB[#25358](https://github.com/ogcio/o11y/issues/25358) ([46ba97b](https://github.com/ogcio/o11y/commit/46ba97bac4004ff326a954592f45213ce0e4d683))
133
- * **sdk-node:** custom metrics ([#53](https://github.com/ogcio/o11y/issues/53)) ([3cb40b1](https://github.com/ogcio/o11y/commit/3cb40b1add3d80615c8d123d233724094559c7ff))
134
- * **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))
135
- * 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))
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * add readme file inside submodule ([#27](https://github.com/ogcio/o11y/issues/27)) ([dc518d5](https://github.com/ogcio/o11y/commit/dc518d5dde573368443bc0f8619e80e331880c78))
141
- * default attributes in resource ([#112](https://github.com/ogcio/o11y/issues/112)) ([f0f0b9d](https://github.com/ogcio/o11y/commit/f0f0b9d555ef321d31f7171e25dc4b8a5b044522))
142
- * improve getMetric attributes types ([#76](https://github.com/ogcio/o11y/issues/76)) ([243649c](https://github.com/ogcio/o11y/commit/243649c4bfe750687a729fbd836772cce16e0cb1))
143
- * prepublishOnly hook ([#60](https://github.com/ogcio/o11y/issues/60)) ([9fbd3ad](https://github.com/ogcio/o11y/commit/9fbd3ad0b45a1604cf2eccc26b2f8855640417a1))
144
- * **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))
145
- * **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))
146
-
147
- ## [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)
148
-
149
-
150
- ### Features
151
-
152
- * may deps update ([#136](https://github.com/ogcio/o11y/issues/136)) ([3edd8b1](https://github.com/ogcio/o11y/commit/3edd8b1d823740d555fc4d93be427e9dc1438a95))
153
-
154
- ## [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)
155
-
156
-
157
- ### Features
158
-
159
- * 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))
160
-
161
-
162
- ### Bug Fixes
163
-
164
- * default attributes in resource ([#112](https://github.com/ogcio/o11y/issues/112)) ([f0f0b9d](https://github.com/ogcio/o11y/commit/f0f0b9d555ef321d31f7171e25dc4b8a5b044522))
165
-
166
- ## [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)
167
-
168
-
169
- ### Features
170
-
171
- * add custom log processor for span enrich ([#102](https://github.com/ogcio/o11y/issues/102)) ([bbf8334](https://github.com/ogcio/o11y/commit/bbf83340940ed651dff63bbe7aaa52881d1e8c8c))
172
- * 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))
173
-
174
- ## [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)
175
-
176
-
177
- ### Features
178
-
179
- * 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))
180
-
181
-
182
- ### Bug Fixes
183
-
184
- * improve getMetric attributes types ([#76](https://github.com/ogcio/o11y/issues/76)) ([243649c](https://github.com/ogcio/o11y/commit/243649c4bfe750687a729fbd836772cce16e0cb1))
185
-
186
- ## [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)
187
-
188
-
189
- ### Features
190
-
191
- * **sdk-node:** add span customization AB[#25358](https://github.com/ogcio/o11y/issues/25358) ([46ba97b](https://github.com/ogcio/o11y/commit/46ba97bac4004ff326a954592f45213ce0e4d683))
192
-
193
- ## [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)
194
-
195
-
196
- ### Features
197
-
198
- * remove pnpm test on prepublishOnly script ([#68](https://github.com/ogcio/o11y/issues/68)) ([41f6f57](https://github.com/ogcio/o11y/commit/41f6f57fa415c4f7adc29f49f983539274ef7320))
199
-
200
- ## [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)
201
-
202
-
203
- ### Features
204
-
205
- * add opentelemetry sampler ([#65](https://github.com/ogcio/o11y/issues/65)) ([66793fd](https://github.com/ogcio/o11y/commit/66793fd36bf071e592e3b455f2e33ad9d5b2db37))
206
-
207
- ## [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)
208
-
209
-
210
- ### Bug Fixes
211
-
212
- * prepublishOnly hook ([#60](https://github.com/ogcio/o11y/issues/60)) ([9fbd3ad](https://github.com/ogcio/o11y/commit/9fbd3ad0b45a1604cf2eccc26b2f8855640417a1))
213
-
214
- ## [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)
215
-
216
-
217
- ### Features
218
-
219
- * **sdk-node:** custom metrics ([#53](https://github.com/ogcio/o11y/issues/53)) ([3cb40b1](https://github.com/ogcio/o11y/commit/3cb40b1add3d80615c8d123d233724094559c7ff))
220
-
221
- ## [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)
222
-
223
-
224
- ### Bug Fixes
225
-
226
- * Add readme file inside submodule ([#27](https://github.com/ogcio/o11y/issues/27)) ([dc518d5](https://github.com/ogcio/o11y/commit/dc518d5dde573368443bc0f8619e80e331880c78))
227
-
228
- ## [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)
229
-
230
-
231
- ### Features
232
-
233
- * O11y sdk repo setup ([#15](https://github.com/ogcio/o11y/issues/15)) ([c5816ba](https://github.com/ogcio/o11y/commit/c5816baff1454353f12539949959e84964ed6401))
@@ -1,3 +0,0 @@
1
- import { NodeSDKConfig } from "../index.js";
2
- import { Exporters } from "./index.js";
3
- export default function buildConsoleExporters(config: NodeSDKConfig): Exporters;
@@ -1,3 +0,0 @@
1
- import { NodeSDKConfig } from "../index.js";
2
- import { Exporters } from "./index.js";
3
- export default function buildGrpcExporters(config: NodeSDKConfig): Promise<Exporters>;
@@ -1,3 +0,0 @@
1
- import { NodeSDKConfig } from "../index.js";
2
- import { Exporters } from "./index.js";
3
- export default function buildHttpExporters(config: NodeSDKConfig): Exporters;
@@ -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,6 +0,0 @@
1
- import { emailRedactor } from "./email.js";
2
- import { ipRedactor } from "./ip.js";
3
- export const redactors = {
4
- email: emailRedactor,
5
- ip: ipRedactor,
6
- };
@@ -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;