@brizz/sdk 0.1.20 → 0.1.22

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/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 {
@@ -122,6 +133,7 @@ declare function emitEvent(name: string, attributes?: Record<string, string | nu
122
133
  declare function getSpanExporter(): SpanExporter;
123
134
  declare function getSpanProcessor(): SpanProcessor;
124
135
 
136
+ declare function setCurrentSpanCustomProperties(properties: Record<string, AttributeValue>): void;
125
137
  declare function callWithProperties<A extends unknown[], F extends (...args: A) => ReturnType<F>>(properties: {
126
138
  [name: string]: string;
127
139
  }, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
@@ -172,4 +184,4 @@ declare namespace init {
172
184
  export { };
173
185
  }
174
186
 
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 };
187
+ 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 {
@@ -122,6 +133,7 @@ declare function emitEvent(name: string, attributes?: Record<string, string | nu
122
133
  declare function getSpanExporter(): SpanExporter;
123
134
  declare function getSpanProcessor(): SpanProcessor;
124
135
 
136
+ declare function setCurrentSpanCustomProperties(properties: Record<string, AttributeValue>): void;
125
137
  declare function callWithProperties<A extends unknown[], F extends (...args: A) => ReturnType<F>>(properties: {
126
138
  [name: string]: string;
127
139
  }, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>;
@@ -172,4 +184,4 @@ declare namespace init {
172
184
  export { };
173
185
  }
174
186
 
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 };
187
+ 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 };