@ogcio/o11y-sdk-node 0.11.2 → 0.11.3

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.
@@ -1,4 +1,5 @@
1
1
  import { _containsEncodedComponents } from "./string-decoding.js";
2
+ import { BasicRedactor } from "../redaction/index.js";
2
3
  const decoder = new TextDecoder();
3
4
  const encoder = new TextEncoder();
4
5
  /**
@@ -1,6 +1,6 @@
1
1
  import buildNodeInstrumentation from "./lib/instrumentation.node.js";
2
2
  export type { Span, SpanStatus } from "@opentelemetry/api";
3
- export { SpanKind, SpanStatusCode, TraceFlags, Exception, } from "@opentelemetry/api";
3
+ export { SpanKind, SpanStatusCode, TraceFlags, type Exception, } from "@opentelemetry/api";
4
4
  export type * from "./lib/index.js";
5
5
  export type { NodeSDK } from "@opentelemetry/sdk-node";
6
6
  export { buildNodeInstrumentation as instrumentNode };
@@ -1,10 +1,10 @@
1
1
  import type { Metadata } from "@grpc/grpc-js";
2
2
  import { BasicRedactor } from "../../sdk-core/lib/index.js";
3
- import { InstrumentationConfigMap } from "@opentelemetry/auto-instrumentations-node";
4
- import { Instrumentation } from "@opentelemetry/instrumentation";
5
- import { Sampler, SpanProcessor } from "@opentelemetry/sdk-trace-base";
6
- import { BufferConfig, LogRecordProcessor } from "@opentelemetry/sdk-logs";
7
- import { ContextManager, TextMapPropagator } from "@opentelemetry/api";
3
+ import type { InstrumentationConfigMap } from "@opentelemetry/auto-instrumentations-node";
4
+ import type { Instrumentation } from "@opentelemetry/instrumentation";
5
+ import type { Sampler, SpanProcessor } from "@opentelemetry/sdk-trace-base";
6
+ import type { BufferConfig, LogRecordProcessor } from "@opentelemetry/sdk-logs";
7
+ import type { ContextManager, TextMapPropagator } from "@opentelemetry/api";
8
8
  import { NodeSDK } from "@opentelemetry/sdk-node";
9
9
  interface BaseNodeSDKConfig {
10
10
  /**
@@ -1 +1,2 @@
1
- export {};
1
+ import { BasicRedactor } from "../../sdk-core/lib/index.js";
2
+ import { NodeSDK } from "@opentelemetry/sdk-node";
@@ -1,6 +1,7 @@
1
1
  import { EmailRedactorWithMetrics } from "./email.js";
2
2
  import { IpRedactorWithMetrics } from "./ip.js";
3
3
  import { getMetric } from "../../../metrics.js";
4
+ import { BasicRedactor } from "../../../../../sdk-core/index.js";
4
5
  import { PpsnRedactorWithMetrics } from "./ppsn.js";
5
6
  const metricCounter = getMetric("counter", {
6
7
  meterName: "o11y",
@@ -1,4 +1,4 @@
1
- import { NodeSDKConfig } from "../index.js";
1
+ import type { NodeSDKConfig } from "../index.js";
2
2
  import type { NodeOptions as SentryNodeOptions } from "@sentry/node";
3
3
  /**
4
4
  * Options for the withSentry preset function.
@@ -1,5 +1,5 @@
1
- import { Context } from "@opentelemetry/api";
2
- import { LogRecordProcessor, SdkLogRecord } from "@opentelemetry/sdk-logs";
1
+ import type { Context } from "@opentelemetry/api";
2
+ import type { LogRecordProcessor, SdkLogRecord } from "@opentelemetry/sdk-logs";
3
3
  export declare class NextJsLogProcessor implements LogRecordProcessor {
4
4
  onEmit(logRecord: SdkLogRecord, _context?: Context): void;
5
5
  shutdown(): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { Span } from "@opentelemetry/sdk-trace-base";
1
+ import type { Span } from "@opentelemetry/sdk-trace-base";
2
2
  import { OnEndingHookSpanProcessor } from "./on-ending-hook-span-processor.js";
3
3
  export declare class NextJsSpanProcessor extends OnEndingHookSpanProcessor {
4
4
  onEnding(span: Span): void;
@@ -1,5 +1,5 @@
1
- import { Context } from "@opentelemetry/api";
2
- import { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base";
1
+ import type { Context } from "@opentelemetry/api";
2
+ import type { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base";
3
3
  /**
4
4
  * A SpanProcessor that provides a hook to execute custom logic
5
5
  * just before a span is ended.
@@ -1,3 +1,4 @@
1
+ import { SpanKind, } from "@opentelemetry/api";
1
2
  import { SamplingDecision, } from "@opentelemetry/sdk-trace-base";
2
3
  export class UrlSampler {
3
4
  _samplerCondition;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogcio/o11y-sdk-node",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Opentelemetry standard instrumentation SDK for NodeJS based project",
5
5
  "main": "dist/sdk-node/index.js",
6
6
  "types": "dist/sdk-node/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogcio/o11y-sdk-node",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Opentelemetry standard instrumentation SDK for NodeJS based project",
5
5
  "main": "dist/sdk-node/index.js",
6
6
  "types": "dist/sdk-node/index.d.ts",