@brizz/sdk 0.1.21 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -25
- package/dist/index.cjs +1151 -461
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +1113 -420
- package/dist/index.js.map +1 -1
- package/dist/preload.cjs +846 -286
- package/dist/preload.cjs.map +1 -1
- package/dist/preload.js +846 -286
- package/dist/preload.js.map +1 -1
- package/package.json +7 -3
package/dist/index.d.cts
CHANGED
|
@@ -9,6 +9,16 @@ export { SeverityNumber } from '@opentelemetry/api-logs';
|
|
|
9
9
|
import { SpanProcessor } from '@opentelemetry/sdk-trace-node';
|
|
10
10
|
import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-http';
|
|
11
11
|
|
|
12
|
+
interface IMCPManualModules {
|
|
13
|
+
clientSSEModule?: unknown;
|
|
14
|
+
serverSSEModule?: unknown;
|
|
15
|
+
clientStdioModule?: unknown;
|
|
16
|
+
serverStdioModule?: unknown;
|
|
17
|
+
clientStreamableHTTPModule?: unknown;
|
|
18
|
+
serverStreamableHTTPModule?: unknown;
|
|
19
|
+
protocolModule?: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
interface IInstrumentModules {
|
|
13
23
|
openAI?: unknown;
|
|
14
24
|
anthropic?: unknown;
|
|
@@ -25,6 +35,7 @@ interface IInstrumentModules {
|
|
|
25
35
|
qdrant?: unknown;
|
|
26
36
|
together?: unknown;
|
|
27
37
|
vercelAI?: unknown;
|
|
38
|
+
mcp?: IMCPManualModules;
|
|
28
39
|
}
|
|
29
40
|
|
|
30
41
|
declare enum LogLevel {
|
|
@@ -88,6 +99,7 @@ interface IBrizzInitializeOptions {
|
|
|
88
99
|
appVersion?: string;
|
|
89
100
|
baseUrl?: string;
|
|
90
101
|
apiKey?: string;
|
|
102
|
+
dsn?: string;
|
|
91
103
|
headers?: Record<string, string>;
|
|
92
104
|
disableBatch?: boolean;
|
|
93
105
|
environment?: string;
|
|
@@ -122,6 +134,7 @@ declare function emitEvent(name: string, attributes?: Record<string, string | nu
|
|
|
122
134
|
declare function getSpanExporter(): SpanExporter;
|
|
123
135
|
declare function getSpanProcessor(): SpanProcessor;
|
|
124
136
|
|
|
137
|
+
declare function setCurrentSpanCustomProperties(properties: Record<string, AttributeValue>): void;
|
|
125
138
|
declare function callWithProperties<A extends unknown[], F extends (...args: A) => ReturnType<F>>(properties: {
|
|
126
139
|
[name: string]: string;
|
|
127
140
|
}, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
|
|
@@ -172,4 +185,4 @@ declare namespace init {
|
|
|
172
185
|
export { };
|
|
173
186
|
}
|
|
174
187
|
|
|
175
|
-
export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMaskingConfig, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, callWithProperties, callWithSessionId, detectRuntime, emitEvent, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, setLogLevel, startSession, startSessionTitle, withProperties, withSessionId };
|
|
188
|
+
export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMCPManualModules, type IMaskingConfig, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, callWithProperties, callWithSessionId, detectRuntime, emitEvent, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, setCurrentSpanCustomProperties, setLogLevel, startSession, startSessionTitle, withProperties, withSessionId };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,16 @@ export { SeverityNumber } from '@opentelemetry/api-logs';
|
|
|
9
9
|
import { SpanProcessor } from '@opentelemetry/sdk-trace-node';
|
|
10
10
|
import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-http';
|
|
11
11
|
|
|
12
|
+
interface IMCPManualModules {
|
|
13
|
+
clientSSEModule?: unknown;
|
|
14
|
+
serverSSEModule?: unknown;
|
|
15
|
+
clientStdioModule?: unknown;
|
|
16
|
+
serverStdioModule?: unknown;
|
|
17
|
+
clientStreamableHTTPModule?: unknown;
|
|
18
|
+
serverStreamableHTTPModule?: unknown;
|
|
19
|
+
protocolModule?: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
interface IInstrumentModules {
|
|
13
23
|
openAI?: unknown;
|
|
14
24
|
anthropic?: unknown;
|
|
@@ -25,6 +35,7 @@ interface IInstrumentModules {
|
|
|
25
35
|
qdrant?: unknown;
|
|
26
36
|
together?: unknown;
|
|
27
37
|
vercelAI?: unknown;
|
|
38
|
+
mcp?: IMCPManualModules;
|
|
28
39
|
}
|
|
29
40
|
|
|
30
41
|
declare enum LogLevel {
|
|
@@ -88,6 +99,7 @@ interface IBrizzInitializeOptions {
|
|
|
88
99
|
appVersion?: string;
|
|
89
100
|
baseUrl?: string;
|
|
90
101
|
apiKey?: string;
|
|
102
|
+
dsn?: string;
|
|
91
103
|
headers?: Record<string, string>;
|
|
92
104
|
disableBatch?: boolean;
|
|
93
105
|
environment?: string;
|
|
@@ -122,6 +134,7 @@ declare function emitEvent(name: string, attributes?: Record<string, string | nu
|
|
|
122
134
|
declare function getSpanExporter(): SpanExporter;
|
|
123
135
|
declare function getSpanProcessor(): SpanProcessor;
|
|
124
136
|
|
|
137
|
+
declare function setCurrentSpanCustomProperties(properties: Record<string, AttributeValue>): void;
|
|
125
138
|
declare function callWithProperties<A extends unknown[], F extends (...args: A) => ReturnType<F>>(properties: {
|
|
126
139
|
[name: string]: string;
|
|
127
140
|
}, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
|
|
@@ -172,4 +185,4 @@ declare namespace init {
|
|
|
172
185
|
export { };
|
|
173
186
|
}
|
|
174
187
|
|
|
175
|
-
export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMaskingConfig, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, callWithProperties, callWithSessionId, detectRuntime, emitEvent, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, setLogLevel, startSession, startSessionTitle, withProperties, withSessionId };
|
|
188
|
+
export { Brizz, DEFAULT_PII_PATTERNS, type IAttributesMaskingRule, type IBrizzInitializeOptions, type IEventMaskingConfig, type IEventMaskingRule, type IInstrumentModules, type ILogMaskingConfig, type ILogger, type IMCPManualModules, type IMaskingConfig, type ISpanMaskingConfig, LogLevel, type MaskingMode, type RuntimeInfo, Session, SessionTitle, callWithProperties, callWithSessionId, detectRuntime, emitEvent, getActiveSession, getLogLevel, getMetricsExporter, getMetricsReader, getSpanExporter, getSpanProcessor, init, logger, maskAttributes, maskValue, setCurrentSpanCustomProperties, setLogLevel, startSession, startSessionTitle, withProperties, withSessionId };
|