@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.
- package/dist/sdk-core/lib/utils/data-structures.js +1 -0
- package/dist/sdk-node/index.d.ts +1 -1
- package/dist/sdk-node/lib/index.d.ts +5 -5
- package/dist/sdk-node/lib/index.js +2 -1
- package/dist/sdk-node/lib/internals/redaction/redactors/index.js +1 -0
- package/dist/sdk-node/lib/presets/sentry-node.d.ts +1 -1
- package/dist/sdk-node/lib/processor/nextjs-logger-processor.d.ts +2 -2
- package/dist/sdk-node/lib/processor/nextjs-span-processor.d.ts +1 -1
- package/dist/sdk-node/lib/processor/on-ending-hook-span-processor.d.ts +2 -2
- package/dist/sdk-node/lib/url-sampler.js +1 -0
- package/dist/sdk-node/package.json +1 -1
- package/package.json +1 -1
package/dist/sdk-node/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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,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.
|
package/package.json
CHANGED