@brizz/sdk 0.1.36 → 0.1.37

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,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/internal/version.ts
2
2
  function getSDKVersion() {
3
- return "0.1.36";
3
+ return "0.1.37";
4
4
  }
5
5
 
6
6
 
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7SUF4VVI.js";
5
5
  import {
6
6
  getSDKVersion
7
- } from "./chunk-6OGRVH77.js";
7
+ } from "./chunk-OR3YPY4I.js";
8
8
  import {
9
9
  DEFAULT_LOG_LEVEL,
10
10
  logger,
@@ -71,12 +71,12 @@ import {
71
71
  } from "./chunk-3RG5ZIWI.js";
72
72
 
73
73
  // src/internal/instrumentation/registry.ts
74
+ import { OpenAIInstrumentation } from "@arizeai/openinference-instrumentation-openai";
74
75
  import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic";
75
76
  import { BedrockInstrumentation } from "@traceloop/instrumentation-bedrock";
76
77
  import { ChromaDBInstrumentation } from "@traceloop/instrumentation-chromadb";
77
78
  import { CohereInstrumentation } from "@traceloop/instrumentation-cohere";
78
79
  import { LlamaIndexInstrumentation } from "@traceloop/instrumentation-llamaindex";
79
- import { OpenAIInstrumentation } from "@traceloop/instrumentation-openai";
80
80
  import { PineconeInstrumentation } from "@traceloop/instrumentation-pinecone";
81
81
  import { QdrantInstrumentation } from "@traceloop/instrumentation-qdrant";
82
82
  import { TogetherInstrumentation } from "@traceloop/instrumentation-together";
@@ -112,8 +112,17 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
112
112
  * @private
113
113
  */
114
114
  loadManualInstrumentations(instrumentations, exceptionLogger) {
115
+ if (this.manualModules?.openAI) {
116
+ try {
117
+ const openAIInst = new OpenAIInstrumentation();
118
+ openAIInst.manuallyInstrument(this.manualModules.openAI);
119
+ instrumentations.push(openAIInst);
120
+ logger.debug("Manual instrumentation enabled for OpenAI");
121
+ } catch (error) {
122
+ logger.error(`Failed to load OpenAI instrumentation: ${String(error)}`);
123
+ }
124
+ }
115
125
  const instrumentationConfigs = [
116
- { class: OpenAIInstrumentation, name: "OpenAI", module: this.manualModules?.openAI },
117
126
  { class: AnthropicInstrumentation, name: "Anthropic", module: this.manualModules?.anthropic },
118
127
  { class: CohereInstrumentation, name: "Cohere", module: this.manualModules?.cohere },
119
128
  { class: BedrockInstrumentation, name: "Bedrock", module: this.manualModules?.bedrock },
@@ -190,7 +199,7 @@ var InstrumentationRegistry = class _InstrumentationRegistry {
190
199
  const mcpModules = this.manualModules.mcp;
191
200
  void (async () => {
192
201
  try {
193
- const { MCPInstrumentation } = await import("./mcp-ZCRMQV5L.js");
202
+ const { MCPInstrumentation } = await import("./mcp-7Y3O5QSS.js");
194
203
  const instrumentation = new MCPInstrumentation({ exceptionLogger });
195
204
  instrumentation.manuallyInstrument(mcpModules);
196
205
  logger.debug("Manual instrumentation enabled for MCP");
@@ -4,7 +4,7 @@
4
4
  var _chunkUNLNNKZ7cjs = require('./chunk-UNLNNKZ7.cjs');
5
5
 
6
6
 
7
- var _chunkPXIW2K27cjs = require('./chunk-PXIW2K27.cjs');
7
+ var _chunk2DSTZTDAcjs = require('./chunk-2DSTZTDA.cjs');
8
8
 
9
9
 
10
10
 
@@ -71,12 +71,12 @@ var _chunk77UGZGMPcjs = require('./chunk-77UGZGMP.cjs');
71
71
  var _chunkOBGZSXTJcjs = require('./chunk-OBGZSXTJ.cjs');
72
72
 
73
73
  // src/internal/instrumentation/registry.ts
74
+ var _openinferenceinstrumentationopenai = require('@arizeai/openinference-instrumentation-openai');
74
75
  var _instrumentationanthropic = require('@traceloop/instrumentation-anthropic');
75
76
  var _instrumentationbedrock = require('@traceloop/instrumentation-bedrock');
76
77
  var _instrumentationchromadb = require('@traceloop/instrumentation-chromadb');
77
78
  var _instrumentationcohere = require('@traceloop/instrumentation-cohere');
78
79
  var _instrumentationllamaindex = require('@traceloop/instrumentation-llamaindex');
79
- var _instrumentationopenai = require('@traceloop/instrumentation-openai');
80
80
  var _instrumentationpinecone = require('@traceloop/instrumentation-pinecone');
81
81
  var _instrumentationqdrant = require('@traceloop/instrumentation-qdrant');
82
82
  var _instrumentationtogether = require('@traceloop/instrumentation-together');
@@ -112,8 +112,17 @@ var InstrumentationRegistry = (_class = class _InstrumentationRegistry {construc
112
112
  * @private
113
113
  */
114
114
  loadManualInstrumentations(instrumentations, exceptionLogger) {
115
+ if (_optionalChain([this, 'access', _2 => _2.manualModules, 'optionalAccess', _3 => _3.openAI])) {
116
+ try {
117
+ const openAIInst = new (0, _openinferenceinstrumentationopenai.OpenAIInstrumentation)();
118
+ openAIInst.manuallyInstrument(this.manualModules.openAI);
119
+ instrumentations.push(openAIInst);
120
+ _chunkWC573FCIcjs.logger.debug("Manual instrumentation enabled for OpenAI");
121
+ } catch (error) {
122
+ _chunkWC573FCIcjs.logger.error(`Failed to load OpenAI instrumentation: ${String(error)}`);
123
+ }
124
+ }
115
125
  const instrumentationConfigs = [
116
- { class: _instrumentationopenai.OpenAIInstrumentation, name: "OpenAI", module: _optionalChain([this, 'access', _2 => _2.manualModules, 'optionalAccess', _3 => _3.openAI]) },
117
126
  { class: _instrumentationanthropic.AnthropicInstrumentation, name: "Anthropic", module: _optionalChain([this, 'access', _4 => _4.manualModules, 'optionalAccess', _5 => _5.anthropic]) },
118
127
  { class: _instrumentationcohere.CohereInstrumentation, name: "Cohere", module: _optionalChain([this, 'access', _6 => _6.manualModules, 'optionalAccess', _7 => _7.cohere]) },
119
128
  { class: _instrumentationbedrock.BedrockInstrumentation, name: "Bedrock", module: _optionalChain([this, 'access', _8 => _8.manualModules, 'optionalAccess', _9 => _9.bedrock]) },
@@ -190,7 +199,7 @@ var InstrumentationRegistry = (_class = class _InstrumentationRegistry {construc
190
199
  const mcpModules = this.manualModules.mcp;
191
200
  void (async () => {
192
201
  try {
193
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-HAUJ3G4Q.cjs")));
202
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-NC5OXRT4.cjs")));
194
203
  const instrumentation = new MCPInstrumentation({ exceptionLogger });
195
204
  instrumentation.manuallyInstrument(mcpModules);
196
205
  _chunkWC573FCIcjs.logger.debug("Manual instrumentation enabled for MCP");
@@ -822,7 +831,7 @@ var LoggingModule = (_class2 = class _LoggingModule {constructor() { _class2.pro
822
831
  const resourceAttributes = {
823
832
  ...config.resourceAttributes,
824
833
  "service.name": config.appName,
825
- [BRIZZ_SDK_VERSION]: _chunkPXIW2K27cjs.getSDKVersion.call(void 0, ),
834
+ [BRIZZ_SDK_VERSION]: _chunk2DSTZTDAcjs.getSDKVersion.call(void 0, ),
826
835
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
827
836
  };
828
837
  if (config.environment) {
@@ -1679,7 +1688,7 @@ var BrizzSpanExporter = class {
1679
1688
  const resourceAttrs = {
1680
1689
  ...config.resourceAttributes,
1681
1690
  "service.name": config.appName,
1682
- [BRIZZ_SDK_VERSION]: _chunkPXIW2K27cjs.getSDKVersion.call(void 0, ),
1691
+ [BRIZZ_SDK_VERSION]: _chunk2DSTZTDAcjs.getSDKVersion.call(void 0, ),
1683
1692
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
1684
1693
  };
1685
1694
  if (config.environment) {
@@ -2115,7 +2124,7 @@ var _Brizz = (_class6 = class __Brizz {constructor() { _class6.prototype.__init1
2115
2124
  const resourceAttributes = {
2116
2125
  ...resolvedConfig.resourceAttributes,
2117
2126
  "service.name": resolvedConfig.appName,
2118
- [BRIZZ_SDK_VERSION]: _chunkPXIW2K27cjs.getSDKVersion.call(void 0, ),
2127
+ [BRIZZ_SDK_VERSION]: _chunk2DSTZTDAcjs.getSDKVersion.call(void 0, ),
2119
2128
  [BRIZZ_SDK_LANGUAGE]: SDK_LANGUAGE
2120
2129
  };
2121
2130
  if (resolvedConfig.environment) {
@@ -1,6 +1,6 @@
1
1
  // src/internal/version.ts
2
2
  function getSDKVersion() {
3
- return "0.1.36";
3
+ return "0.1.37";
4
4
  }
5
5
 
6
6
  export {
package/dist/index.cjs CHANGED
@@ -34,9 +34,9 @@
34
34
 
35
35
 
36
36
 
37
- var _chunkCQDWK43Acjs = require('./chunk-CQDWK43A.cjs');
37
+ var _chunkO5DVPC42cjs = require('./chunk-O5DVPC42.cjs');
38
38
  require('./chunk-UNLNNKZ7.cjs');
39
- require('./chunk-PXIW2K27.cjs');
39
+ require('./chunk-2DSTZTDA.cjs');
40
40
 
41
41
 
42
42
 
@@ -48,13 +48,13 @@ require('./chunk-77UGZGMP.cjs');
48
48
  require('./chunk-OBGZSXTJ.cjs');
49
49
 
50
50
  // src/internal/instrumentation/auto-init.ts
51
+ var _openinferenceinstrumentationopenai = require('@arizeai/openinference-instrumentation-openai');
51
52
  var _instrumentation = require('@opentelemetry/instrumentation');
52
53
  var _instrumentationanthropic = require('@traceloop/instrumentation-anthropic');
53
54
  var _instrumentationbedrock = require('@traceloop/instrumentation-bedrock');
54
55
  var _instrumentationchromadb = require('@traceloop/instrumentation-chromadb');
55
56
  var _instrumentationcohere = require('@traceloop/instrumentation-cohere');
56
57
  var _instrumentationllamaindex = require('@traceloop/instrumentation-llamaindex');
57
- var _instrumentationopenai = require('@traceloop/instrumentation-openai');
58
58
  var _instrumentationpinecone = require('@traceloop/instrumentation-pinecone');
59
59
  var _instrumentationqdrant = require('@traceloop/instrumentation-qdrant');
60
60
  var _instrumentationtogether = require('@traceloop/instrumentation-together');
@@ -63,8 +63,13 @@ var exceptionLogger = (error) => {
63
63
  };
64
64
  function loadGenAIInstrumentations() {
65
65
  const instrumentations = [];
66
+ try {
67
+ instrumentations.push(new (0, _openinferenceinstrumentationopenai.OpenAIInstrumentation)());
68
+ _chunkWC573FCIcjs.logger.debug("Auto-loaded OpenAI instrumentation");
69
+ } catch (error) {
70
+ _chunkWC573FCIcjs.logger.error(`Failed to auto-load OpenAI instrumentation: ${String(error)}`);
71
+ }
66
72
  const genAIInstrumentationClasses = [
67
- { class: _instrumentationopenai.OpenAIInstrumentation, name: "OpenAI" },
68
73
  { class: _instrumentationanthropic.AnthropicInstrumentation, name: "Anthropic" },
69
74
  { class: _instrumentationcohere.CohereInstrumentation, name: "Cohere" },
70
75
  { class: _instrumentationbedrock.BedrockInstrumentation, name: "Bedrock" },
@@ -94,7 +99,7 @@ function loadGenAIInstrumentations() {
94
99
  function loadMCPInstrumentation() {
95
100
  void (async () => {
96
101
  try {
97
- const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-HAUJ3G4Q.cjs")));
102
+ const { MCPInstrumentation } = await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-NC5OXRT4.cjs")));
98
103
  const mcp = new MCPInstrumentation({ exceptionLogger });
99
104
  _instrumentation.registerInstrumentations.call(void 0, { instrumentations: [mcp] });
100
105
  _chunkWC573FCIcjs.logger.debug("Auto-loaded MCP instrumentation");
@@ -243,4 +248,4 @@ var init_exports = {};
243
248
 
244
249
 
245
250
 
246
- exports.Brizz = _chunkCQDWK43Acjs.Brizz; exports.DEFAULT_PII_PATTERNS = _chunkCQDWK43Acjs.DEFAULT_PII_PATTERNS; exports.LogLevel = _chunkWC573FCIcjs.LogLevel; exports.Session = _chunkCQDWK43Acjs.Session; exports.SessionTitle = _chunkCQDWK43Acjs.SessionTitle; exports.SeverityNumber = _apilogs.SeverityNumber; exports.addExternalLink = _chunkCQDWK43Acjs.addExternalLink; exports.callWithMessageId = _chunkCQDWK43Acjs.callWithMessageId; exports.callWithMute = _chunkCQDWK43Acjs.callWithMute; exports.callWithOrganization = _chunkCQDWK43Acjs.callWithOrganization; exports.callWithProperties = _chunkCQDWK43Acjs.callWithProperties; exports.callWithSessionId = _chunkCQDWK43Acjs.callWithSessionId; exports.callWithUser = _chunkCQDWK43Acjs.callWithUser; exports.detectRuntime = _chunkCQDWK43Acjs.detectRuntime; exports.emitEvent = _chunkCQDWK43Acjs.emitEvent; exports.emitEventWithSessionId = _chunkCQDWK43Acjs.emitEventWithSessionId; exports.getActiveSession = _chunkCQDWK43Acjs.getActiveSession; exports.getLogLevel = _chunkWC573FCIcjs.getLogLevel; exports.getMetricsExporter = _chunkCQDWK43Acjs.getMetricsExporter; exports.getMetricsReader = _chunkCQDWK43Acjs.getMetricsReader; exports.getSpanExporter = _chunkCQDWK43Acjs.getSpanExporter; exports.getSpanProcessor = _chunkCQDWK43Acjs.getSpanProcessor; exports.init = init_exports; exports.logger = _chunkWC573FCIcjs.logger; exports.maskAttributes = _chunkCQDWK43Acjs.maskAttributes; exports.maskValue = _chunkCQDWK43Acjs.maskValue; exports.recordFeedback = _chunkCQDWK43Acjs.recordFeedback; exports.recordMetric = _chunkCQDWK43Acjs.recordMetric; exports.setCurrentSpanCustomProperties = _chunkCQDWK43Acjs.setCurrentSpanCustomProperties; exports.setLogLevel = _chunkWC573FCIcjs.setLogLevel; exports.setMessageId = _chunkCQDWK43Acjs.setMessageId; exports.setOrganization = _chunkCQDWK43Acjs.setOrganization; exports.setUser = _chunkCQDWK43Acjs.setUser; exports.startSession = _chunkCQDWK43Acjs.startSession; exports.startSessionTitle = _chunkCQDWK43Acjs.startSessionTitle; exports.withMessageId = _chunkCQDWK43Acjs.withMessageId; exports.withMute = _chunkCQDWK43Acjs.withMute; exports.withOrganization = _chunkCQDWK43Acjs.withOrganization; exports.withProperties = _chunkCQDWK43Acjs.withProperties; exports.withSessionId = _chunkCQDWK43Acjs.withSessionId; exports.withUser = _chunkCQDWK43Acjs.withUser;
251
+ exports.Brizz = _chunkO5DVPC42cjs.Brizz; exports.DEFAULT_PII_PATTERNS = _chunkO5DVPC42cjs.DEFAULT_PII_PATTERNS; exports.LogLevel = _chunkWC573FCIcjs.LogLevel; exports.Session = _chunkO5DVPC42cjs.Session; exports.SessionTitle = _chunkO5DVPC42cjs.SessionTitle; exports.SeverityNumber = _apilogs.SeverityNumber; exports.addExternalLink = _chunkO5DVPC42cjs.addExternalLink; exports.callWithMessageId = _chunkO5DVPC42cjs.callWithMessageId; exports.callWithMute = _chunkO5DVPC42cjs.callWithMute; exports.callWithOrganization = _chunkO5DVPC42cjs.callWithOrganization; exports.callWithProperties = _chunkO5DVPC42cjs.callWithProperties; exports.callWithSessionId = _chunkO5DVPC42cjs.callWithSessionId; exports.callWithUser = _chunkO5DVPC42cjs.callWithUser; exports.detectRuntime = _chunkO5DVPC42cjs.detectRuntime; exports.emitEvent = _chunkO5DVPC42cjs.emitEvent; exports.emitEventWithSessionId = _chunkO5DVPC42cjs.emitEventWithSessionId; exports.getActiveSession = _chunkO5DVPC42cjs.getActiveSession; exports.getLogLevel = _chunkWC573FCIcjs.getLogLevel; exports.getMetricsExporter = _chunkO5DVPC42cjs.getMetricsExporter; exports.getMetricsReader = _chunkO5DVPC42cjs.getMetricsReader; exports.getSpanExporter = _chunkO5DVPC42cjs.getSpanExporter; exports.getSpanProcessor = _chunkO5DVPC42cjs.getSpanProcessor; exports.init = init_exports; exports.logger = _chunkWC573FCIcjs.logger; exports.maskAttributes = _chunkO5DVPC42cjs.maskAttributes; exports.maskValue = _chunkO5DVPC42cjs.maskValue; exports.recordFeedback = _chunkO5DVPC42cjs.recordFeedback; exports.recordMetric = _chunkO5DVPC42cjs.recordMetric; exports.setCurrentSpanCustomProperties = _chunkO5DVPC42cjs.setCurrentSpanCustomProperties; exports.setLogLevel = _chunkWC573FCIcjs.setLogLevel; exports.setMessageId = _chunkO5DVPC42cjs.setMessageId; exports.setOrganization = _chunkO5DVPC42cjs.setOrganization; exports.setUser = _chunkO5DVPC42cjs.setUser; exports.startSession = _chunkO5DVPC42cjs.startSession; exports.startSessionTitle = _chunkO5DVPC42cjs.startSessionTitle; exports.withMessageId = _chunkO5DVPC42cjs.withMessageId; exports.withMute = _chunkO5DVPC42cjs.withMute; exports.withOrganization = _chunkO5DVPC42cjs.withOrganization; exports.withProperties = _chunkO5DVPC42cjs.withProperties; exports.withSessionId = _chunkO5DVPC42cjs.withSessionId; exports.withUser = _chunkO5DVPC42cjs.withUser;
package/dist/index.js CHANGED
@@ -34,9 +34,9 @@ import {
34
34
  withProperties,
35
35
  withSessionId,
36
36
  withUser
37
- } from "./chunk-YNCBWOHM.js";
37
+ } from "./chunk-4Q2CRWI6.js";
38
38
  import "./chunk-7SUF4VVI.js";
39
- import "./chunk-6OGRVH77.js";
39
+ import "./chunk-OR3YPY4I.js";
40
40
  import {
41
41
  LogLevel,
42
42
  getLogLevel,
@@ -48,13 +48,13 @@ import "./chunk-WII4R5RE.js";
48
48
  import "./chunk-3RG5ZIWI.js";
49
49
 
50
50
  // src/internal/instrumentation/auto-init.ts
51
+ import { OpenAIInstrumentation } from "@arizeai/openinference-instrumentation-openai";
51
52
  import { registerInstrumentations } from "@opentelemetry/instrumentation";
52
53
  import { AnthropicInstrumentation } from "@traceloop/instrumentation-anthropic";
53
54
  import { BedrockInstrumentation } from "@traceloop/instrumentation-bedrock";
54
55
  import { ChromaDBInstrumentation } from "@traceloop/instrumentation-chromadb";
55
56
  import { CohereInstrumentation } from "@traceloop/instrumentation-cohere";
56
57
  import { LlamaIndexInstrumentation } from "@traceloop/instrumentation-llamaindex";
57
- import { OpenAIInstrumentation } from "@traceloop/instrumentation-openai";
58
58
  import { PineconeInstrumentation } from "@traceloop/instrumentation-pinecone";
59
59
  import { QdrantInstrumentation } from "@traceloop/instrumentation-qdrant";
60
60
  import { TogetherInstrumentation } from "@traceloop/instrumentation-together";
@@ -63,8 +63,13 @@ var exceptionLogger = (error) => {
63
63
  };
64
64
  function loadGenAIInstrumentations() {
65
65
  const instrumentations = [];
66
+ try {
67
+ instrumentations.push(new OpenAIInstrumentation());
68
+ logger.debug("Auto-loaded OpenAI instrumentation");
69
+ } catch (error) {
70
+ logger.error(`Failed to auto-load OpenAI instrumentation: ${String(error)}`);
71
+ }
66
72
  const genAIInstrumentationClasses = [
67
- { class: OpenAIInstrumentation, name: "OpenAI" },
68
73
  { class: AnthropicInstrumentation, name: "Anthropic" },
69
74
  { class: CohereInstrumentation, name: "Cohere" },
70
75
  { class: BedrockInstrumentation, name: "Bedrock" },
@@ -94,7 +99,7 @@ function loadGenAIInstrumentations() {
94
99
  function loadMCPInstrumentation() {
95
100
  void (async () => {
96
101
  try {
97
- const { MCPInstrumentation } = await import("./mcp-ZCRMQV5L.js");
102
+ const { MCPInstrumentation } = await import("./mcp-7Y3O5QSS.js");
98
103
  const mcp = new MCPInstrumentation({ exceptionLogger });
99
104
  registerInstrumentations({ instrumentations: [mcp] });
100
105
  logger.debug("Auto-loaded MCP instrumentation");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getSDKVersion
3
- } from "./chunk-6OGRVH77.js";
3
+ } from "./chunk-OR3YPY4I.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-Y4HNUX3Q.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkPXIW2K27cjs = require('./chunk-PXIW2K27.cjs');
3
+ var _chunk2DSTZTDAcjs = require('./chunk-2DSTZTDA.cjs');
4
4
 
5
5
 
6
6
  var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
@@ -570,7 +570,7 @@ function safeEnd(span) {
570
570
 
571
571
  // src/internal/instrumentation/mcp/version.ts
572
572
  var INSTRUMENTATION_NAME = "@brizz/sdk/mcp";
573
- var INSTRUMENTATION_VERSION = _chunkPXIW2K27cjs.getSDKVersion.call(void 0, );
573
+ var INSTRUMENTATION_VERSION = _chunk2DSTZTDAcjs.getSDKVersion.call(void 0, );
574
574
 
575
575
  // src/internal/instrumentation/mcp/instrumentation.ts
576
576
  var PROTOCOL_MODULE_NAME = "@modelcontextprotocol/sdk/shared/protocol.js";
package/dist/preload.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
3
 
4
- var _chunkCQDWK43Acjs = require('./chunk-CQDWK43A.cjs');
4
+ var _chunkO5DVPC42cjs = require('./chunk-O5DVPC42.cjs');
5
5
  require('./chunk-UNLNNKZ7.cjs');
6
- require('./chunk-PXIW2K27.cjs');
6
+ require('./chunk-2DSTZTDA.cjs');
7
7
 
8
8
 
9
9
 
@@ -96,16 +96,16 @@ if (globalThis[LOADER_REGISTERED_KEY] !== true) {
96
96
  }
97
97
 
98
98
  // src/preload.ts
99
- var runtime = _chunkCQDWK43Acjs.detectRuntime.call(void 0, );
99
+ var runtime = _chunkO5DVPC42cjs.detectRuntime.call(void 0, );
100
100
  if (runtime.isESM && runtime.supportsLoaderAPI) {
101
101
  maybeRegisterESMLoader();
102
102
  }
103
103
  try {
104
104
  const logLevel = process.env["BRIZZ_LOG_LEVEL"] || _chunkWC573FCIcjs.DEFAULT_LOG_LEVEL.toString();
105
105
  if (process.env["BRIZZ_DSN"]) {
106
- _chunkCQDWK43Acjs.Brizz.initialize({ logLevel, disableNodeSdk: false });
106
+ _chunkO5DVPC42cjs.Brizz.initialize({ logLevel, disableNodeSdk: false });
107
107
  } else {
108
- _chunkCQDWK43Acjs.Brizz.initialize({
108
+ _chunkO5DVPC42cjs.Brizz.initialize({
109
109
  apiKey: process.env["BRIZZ_API_KEY"],
110
110
  baseUrl: process.env["BRIZZ_BASE_URL"],
111
111
  appName: process.env["BRIZZ_APP_NAME"] || process.env["OTEL_SERVICE_NAME"],
package/dist/preload.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Brizz,
3
3
  detectRuntime
4
- } from "./chunk-YNCBWOHM.js";
4
+ } from "./chunk-4Q2CRWI6.js";
5
5
  import "./chunk-7SUF4VVI.js";
6
- import "./chunk-6OGRVH77.js";
6
+ import "./chunk-OR3YPY4I.js";
7
7
  import {
8
8
  DEFAULT_LOG_LEVEL,
9
9
  logger
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brizz/sdk",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "type": "module",
5
5
  "description": "OpenTelemetry-based observability SDK for AI applications",
6
6
  "keywords": [
@@ -176,6 +176,7 @@
176
176
  },
177
177
  "dependencies": {
178
178
  "@arizeai/openinference-instrumentation-langchain": "^4.0.14",
179
+ "@arizeai/openinference-instrumentation-openai": "^2.3.1",
179
180
  "@opentelemetry/api": "^1.9.0",
180
181
  "@opentelemetry/api-logs": "^0.220.0",
181
182
  "@opentelemetry/core": "^2.9.0",
@@ -196,7 +197,6 @@
196
197
  "@traceloop/instrumentation-chromadb": "^0.27.0",
197
198
  "@traceloop/instrumentation-cohere": "^0.27.0",
198
199
  "@traceloop/instrumentation-llamaindex": "^0.27.0",
199
- "@traceloop/instrumentation-openai": "^0.27.0",
200
200
  "@traceloop/instrumentation-pinecone": "^0.27.0",
201
201
  "@traceloop/instrumentation-qdrant": "^0.27.0",
202
202
  "@traceloop/instrumentation-together": "^0.27.0",