@brizz/sdk 0.1.57 → 0.1.59
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 +52 -3
- package/dist/chunk-4QNEI7VZ.cjs +984 -0
- package/dist/{chunk-DCXOK7PX.cjs → chunk-5QZM5EVP.cjs} +8 -8
- package/dist/{chunk-O2IBZJOJ.cjs → chunk-6QXPHZEO.cjs} +4 -4
- package/dist/chunk-EZCNPWKM.js +984 -0
- package/dist/{chunk-7PRTTYWM.js → chunk-GABRGNAU.js} +1 -1
- package/dist/{chunk-GUKWVI53.js → chunk-GISL4K6Z.js} +27 -1
- package/dist/{chunk-RV7JIIDG.cjs → chunk-NF52RMLW.cjs} +27 -1
- package/dist/{chunk-42KYS2LU.js → chunk-ZGX52S4U.js} +2 -2
- package/dist/index.cjs +280 -966
- package/dist/index.js +238 -924
- package/dist/interrupt-36U5562Z.cjs +12 -0
- package/dist/{interrupt-UKJK5WOA.js → interrupt-6BSXUK3O.js} +2 -2
- package/dist/{mcp-FBTQYIOL.js → mcp-TTECBPGZ.js} +4 -3
- package/dist/{mcp-WHXEBLRI.cjs → mcp-UPBKSTB7.cjs} +19 -18
- package/dist/session.cjs +78 -0
- package/dist/session.js +78 -0
- package/dist/types/cjs/index.d.ts +2 -2
- package/dist/types/cjs/internal/error-type.d.ts +1 -0
- package/dist/types/cjs/internal/instrumentation/mcp/semantic-conventions.d.ts +1 -1
- package/dist/types/cjs/internal/instrumentation/typesafe.d.ts +0 -8
- package/dist/types/cjs/internal/log/emit.d.ts +8 -0
- package/dist/types/cjs/internal/log/logging.d.ts +2 -2
- package/dist/types/cjs/internal/semantic-conventions.d.ts +13 -0
- package/dist/types/cjs/internal/serialization.d.ts +2 -0
- package/dist/types/cjs/internal/trace/decision-call.d.ts +24 -0
- package/dist/types/cjs/internal/trace/index.d.ts +2 -0
- package/dist/types/cjs/internal/trace/session.d.ts +2 -1
- package/dist/types/cjs/session.d.ts +6 -0
- package/dist/types/esm/index.d.ts +2 -2
- package/dist/types/esm/internal/error-type.d.ts +1 -0
- package/dist/types/esm/internal/instrumentation/mcp/semantic-conventions.d.ts +1 -1
- package/dist/types/esm/internal/instrumentation/typesafe.d.ts +0 -8
- package/dist/types/esm/internal/log/emit.d.ts +8 -0
- package/dist/types/esm/internal/log/logging.d.ts +2 -2
- package/dist/types/esm/internal/semantic-conventions.d.ts +13 -0
- package/dist/types/esm/internal/serialization.d.ts +2 -0
- package/dist/types/esm/internal/trace/decision-call.d.ts +24 -0
- package/dist/types/esm/internal/trace/index.d.ts +2 -0
- package/dist/types/esm/internal/trace/session.d.ts +2 -1
- package/dist/types/esm/session.d.ts +6 -0
- package/package.json +29 -18
- package/dist/interrupt-BYLSBXTV.cjs +0 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunk6QXPHZEOcjs = require('./chunk-6QXPHZEO.cjs');
|
|
6
|
+
require('./chunk-NF52RMLW.cjs');
|
|
7
|
+
require('./chunk-OBGZSXTJ.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.InterruptPropagator = _chunk6QXPHZEOcjs.InterruptPropagator; exports._resetInterruptState = _chunk6QXPHZEOcjs._resetInterruptState; exports.createInterruptIntegration = _chunk6QXPHZEOcjs.createInterruptIntegration;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
InterruptPropagator,
|
|
3
3
|
_resetInterruptState,
|
|
4
4
|
createInterruptIntegration
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-GABRGNAU.js";
|
|
6
|
+
import "./chunk-GISL4K6Z.js";
|
|
7
7
|
import "./chunk-3RG5ZIWI.js";
|
|
8
8
|
export {
|
|
9
9
|
InterruptPropagator,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
resolveTransportSessionId,
|
|
9
9
|
sessionToolResult,
|
|
10
10
|
stampAndPropagateSession
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZGX52S4U.js";
|
|
12
12
|
import {
|
|
13
13
|
brizzTracerProvider,
|
|
14
14
|
extractTraceContext,
|
|
@@ -18,7 +18,9 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
20
|
} from "./chunk-Y4HNUX3Q.js";
|
|
21
|
-
import
|
|
21
|
+
import {
|
|
22
|
+
ERROR_TYPE
|
|
23
|
+
} from "./chunk-GISL4K6Z.js";
|
|
22
24
|
import "./chunk-3RG5ZIWI.js";
|
|
23
25
|
|
|
24
26
|
// src/internal/instrumentation/mcp/instrumentation.ts
|
|
@@ -55,7 +57,6 @@ var GEN_AI_PROMPT_NAME = "gen_ai.prompt.name";
|
|
|
55
57
|
var GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
56
58
|
var GEN_AI_OPERATION_EXECUTE_TOOL = "execute_tool";
|
|
57
59
|
var NETWORK_TRANSPORT = "network.transport";
|
|
58
|
-
var ERROR_TYPE = "error.type";
|
|
59
60
|
var ERROR_TYPE_TOOL = "tool_error";
|
|
60
61
|
var JSONRPC_REQUEST_ID = "jsonrpc.request.id";
|
|
61
62
|
var SPAN_NAME_TOOLS_CALL = "tools/call";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk5QZM5EVPcjs = require('./chunk-5QZM5EVP.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -18,7 +18,9 @@ var _chunkDC2MFO65cjs = require('./chunk-DC2MFO65.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkWC573FCIcjs = require('./chunk-WC573FCI.cjs');
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var _chunkNF52RMLWcjs = require('./chunk-NF52RMLW.cjs');
|
|
22
24
|
require('./chunk-OBGZSXTJ.cjs');
|
|
23
25
|
|
|
24
26
|
// src/internal/instrumentation/mcp/instrumentation.ts
|
|
@@ -55,7 +57,6 @@ var GEN_AI_PROMPT_NAME = "gen_ai.prompt.name";
|
|
|
55
57
|
var GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
56
58
|
var GEN_AI_OPERATION_EXECUTE_TOOL = "execute_tool";
|
|
57
59
|
var NETWORK_TRANSPORT = "network.transport";
|
|
58
|
-
var ERROR_TYPE = "error.type";
|
|
59
60
|
var ERROR_TYPE_TOOL = "tool_error";
|
|
60
61
|
var JSONRPC_REQUEST_ID = "jsonrpc.request.id";
|
|
61
62
|
var SPAN_NAME_TOOLS_CALL = "tools/call";
|
|
@@ -241,7 +242,7 @@ function applyResultAttributes(span, method, result) {
|
|
|
241
242
|
const content = _nullishCoalesce(_optionalChain([obj, 'optionalAccess', _8 => _8["content"]]), () => ( result));
|
|
242
243
|
span.setAttribute(MCP_TOOL_RESULT, serializeForAttribute(content));
|
|
243
244
|
if (obj && obj["isError"] === true) {
|
|
244
|
-
span.setAttribute(ERROR_TYPE, ERROR_TYPE_TOOL);
|
|
245
|
+
span.setAttribute(_chunkNF52RMLWcjs.ERROR_TYPE, ERROR_TYPE_TOOL);
|
|
245
246
|
const message = extractToolErrorMessage(obj);
|
|
246
247
|
span.setStatus({ code: _api.SpanStatusCode.ERROR, message });
|
|
247
248
|
}
|
|
@@ -251,13 +252,13 @@ function applyErrorAttributes(span, err) {
|
|
|
251
252
|
const code = _optionalChain([error, 'optionalAccess', _9 => _9.code]);
|
|
252
253
|
if (typeof code === "number") {
|
|
253
254
|
span.setAttribute(RPC_RESPONSE_STATUS_CODE, code);
|
|
254
|
-
span.setAttribute(ERROR_TYPE, String(code));
|
|
255
|
+
span.setAttribute(_chunkNF52RMLWcjs.ERROR_TYPE, String(code));
|
|
255
256
|
} else if (_optionalChain([error, 'optionalAccess', _10 => _10.name]) === "AbortError") {
|
|
256
|
-
span.setAttribute(ERROR_TYPE, "cancelled");
|
|
257
|
+
span.setAttribute(_chunkNF52RMLWcjs.ERROR_TYPE, "cancelled");
|
|
257
258
|
} else if (_optionalChain([error, 'optionalAccess', _11 => _11.name]) === "TimeoutError") {
|
|
258
|
-
span.setAttribute(ERROR_TYPE, "timeout");
|
|
259
|
+
span.setAttribute(_chunkNF52RMLWcjs.ERROR_TYPE, "timeout");
|
|
259
260
|
} else {
|
|
260
|
-
span.setAttribute(ERROR_TYPE, _optionalChain([error, 'optionalAccess', _12 => _12.constructor, 'optionalAccess', _13 => _13.name]) || _optionalChain([error, 'optionalAccess', _14 => _14.name]) || "Error");
|
|
261
|
+
span.setAttribute(_chunkNF52RMLWcjs.ERROR_TYPE, _optionalChain([error, 'optionalAccess', _12 => _12.constructor, 'optionalAccess', _13 => _13.name]) || _optionalChain([error, 'optionalAccess', _14 => _14.name]) || "Error");
|
|
261
262
|
}
|
|
262
263
|
try {
|
|
263
264
|
span.recordException(error);
|
|
@@ -409,14 +410,14 @@ function wrapOnRequest(original, tracer) {
|
|
|
409
410
|
return original.apply(this, args);
|
|
410
411
|
}
|
|
411
412
|
const method = request.method;
|
|
412
|
-
if (method === METHOD_TOOLS_CALL &&
|
|
413
|
+
if (method === METHOD_TOOLS_CALL && _chunk5QZM5EVPcjs.isSessionToolCall.call(void 0, request)) {
|
|
413
414
|
return answerSessionToolCall(this, request, tracer, args, original);
|
|
414
415
|
}
|
|
415
416
|
const handler = _nullishCoalesce(handlers.get(method), () => ( this.fallbackRequestHandler));
|
|
416
417
|
if (!handler) {
|
|
417
418
|
return original.apply(this, args);
|
|
418
419
|
}
|
|
419
|
-
const tracking =
|
|
420
|
+
const tracking = _chunk5QZM5EVPcjs.isEnabled.call(void 0, ) && method === METHOD_TOOLS_CALL ? _chunk5QZM5EVPcjs.popTrackingArguments.call(void 0, request) : {};
|
|
420
421
|
const started = safeStartServerSpan(tracer, request, this, tracking);
|
|
421
422
|
if (!started) {
|
|
422
423
|
return original.apply(this, args);
|
|
@@ -426,9 +427,9 @@ function wrapOnRequest(original, tracer) {
|
|
|
426
427
|
if (method === METHOD_TOOLS_LIST) {
|
|
427
428
|
hooks.onResult = (result) => {
|
|
428
429
|
let advertised = result;
|
|
429
|
-
if (
|
|
430
|
+
if (_chunk5QZM5EVPcjs.isEnabled.call(void 0, )) {
|
|
430
431
|
try {
|
|
431
|
-
advertised =
|
|
432
|
+
advertised = _chunk5QZM5EVPcjs.patchListToolsResult.call(void 0, result);
|
|
432
433
|
} catch (error) {
|
|
433
434
|
_chunkWC573FCIcjs.logger.warn(
|
|
434
435
|
`Brizz MCP: failed to patch tools/list schemas: ${String(error)}`
|
|
@@ -439,7 +440,7 @@ function wrapOnRequest(original, tracer) {
|
|
|
439
440
|
try {
|
|
440
441
|
emitSchemaSpansFromListResponse(
|
|
441
442
|
advertised,
|
|
442
|
-
|
|
443
|
+
_chunk5QZM5EVPcjs.resolveTransportSessionId.call(void 0, this),
|
|
443
444
|
tracer
|
|
444
445
|
);
|
|
445
446
|
} catch (error) {
|
|
@@ -452,7 +453,7 @@ function wrapOnRequest(original, tracer) {
|
|
|
452
453
|
}
|
|
453
454
|
if (method !== METHOD_TOOLS_CALL) {
|
|
454
455
|
hooks.onError = () => {
|
|
455
|
-
|
|
456
|
+
_chunk5QZM5EVPcjs.stampAndPropagateSession.call(void 0, span, _chunk5QZM5EVPcjs.resolveSessionId.call(void 0, this, spanCtx), spanCtx);
|
|
456
457
|
};
|
|
457
458
|
}
|
|
458
459
|
const wrappedHandler = (req, extra) => _api.context.with(
|
|
@@ -486,7 +487,7 @@ function answerSessionToolCall(protocol, request, tracer, args, original) {
|
|
|
486
487
|
if (!handlers) {
|
|
487
488
|
return original.apply(protocol, args);
|
|
488
489
|
}
|
|
489
|
-
const { id, result } =
|
|
490
|
+
const { id, result } = _chunk5QZM5EVPcjs.sessionToolResult.call(void 0, );
|
|
490
491
|
const started = safeStartServerSpan(tracer, request, protocol, { sessionId: id });
|
|
491
492
|
const handler = () => started ? _api.context.with(started.spanCtx, () => result) : result;
|
|
492
493
|
const hadEntry = handlers.has(METHOD_TOOLS_CALL);
|
|
@@ -576,8 +577,8 @@ function safeStartServerSpan(tracer, request, protocol, tracking = {}) {
|
|
|
576
577
|
parentCtx
|
|
577
578
|
);
|
|
578
579
|
applyServerRequestAttributes(span, request, protocol);
|
|
579
|
-
const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => (
|
|
580
|
-
const { context: sessCtx } =
|
|
580
|
+
const resolved = request.method === METHOD_TOOLS_CALL ? _nullishCoalesce(tracking.sessionId, () => ( _chunk5QZM5EVPcjs.resolveSessionId.call(void 0, protocol, parentCtx))) : void 0;
|
|
581
|
+
const { context: sessCtx } = _chunk5QZM5EVPcjs.stampAndPropagateSession.call(void 0,
|
|
581
582
|
span,
|
|
582
583
|
resolved,
|
|
583
584
|
parentCtx,
|
|
@@ -633,7 +634,7 @@ function safeEnd(span) {
|
|
|
633
634
|
|
|
634
635
|
// src/internal/instrumentation/mcp/version.ts
|
|
635
636
|
var INSTRUMENTATION_NAME = "@brizz/sdk/mcp";
|
|
636
|
-
var INSTRUMENTATION_VERSION =
|
|
637
|
+
var INSTRUMENTATION_VERSION = _chunk5QZM5EVPcjs.getSDKVersion.call(void 0, );
|
|
637
638
|
|
|
638
639
|
// src/internal/instrumentation/mcp/instrumentation.ts
|
|
639
640
|
var PROTOCOL_MODULE_NAME = "@modelcontextprotocol/sdk/shared/protocol.js";
|
package/dist/session.cjs
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
var _chunk4QNEI7VZcjs = require('./chunk-4QNEI7VZ.cjs');
|
|
36
|
+
require('./chunk-DC2MFO65.cjs');
|
|
37
|
+
require('./chunk-WC573FCI.cjs');
|
|
38
|
+
require('./chunk-NF52RMLW.cjs');
|
|
39
|
+
require('./chunk-OBGZSXTJ.cjs');
|
|
40
|
+
|
|
41
|
+
// src/session.ts
|
|
42
|
+
var _api = require('@opentelemetry/api');
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
exports.Session = _chunk4QNEI7VZcjs.Session; exports.SessionTitle = _chunk4QNEI7VZcjs.SessionTitle; exports.SeverityNumber = _api.SeverityNumber; exports.addExternalLink = _chunk4QNEI7VZcjs.addExternalLink; exports.callWithMessageId = _chunk4QNEI7VZcjs.callWithMessageId; exports.callWithMute = _chunk4QNEI7VZcjs.callWithMute; exports.callWithOrganization = _chunk4QNEI7VZcjs.callWithOrganization; exports.callWithProperties = _chunk4QNEI7VZcjs.callWithProperties; exports.callWithServiceName = _chunk4QNEI7VZcjs.callWithServiceName; exports.callWithSessionId = _chunk4QNEI7VZcjs.callWithSessionId; exports.callWithUser = _chunk4QNEI7VZcjs.callWithUser; exports.emitEvent = _chunk4QNEI7VZcjs.emitEvent; exports.emitEventWithSessionId = _chunk4QNEI7VZcjs.emitEventWithSessionId; exports.getActiveSession = _chunk4QNEI7VZcjs.getActiveSession; exports.recordFeedback = _chunk4QNEI7VZcjs.recordFeedback; exports.recordMetric = _chunk4QNEI7VZcjs.recordMetric; exports.setAgent = _chunk4QNEI7VZcjs.setAgent; exports.setCurrentSpanCustomProperties = _chunk4QNEI7VZcjs.setCurrentSpanCustomProperties; exports.setMessageId = _chunk4QNEI7VZcjs.setMessageId; exports.setOrganization = _chunk4QNEI7VZcjs.setOrganization; exports.setServiceName = _chunk4QNEI7VZcjs.setServiceName; exports.setSessionId = _chunk4QNEI7VZcjs.setSessionId; exports.setUser = _chunk4QNEI7VZcjs.setUser; exports.startAgent = _chunk4QNEI7VZcjs.startAgent; exports.startSession = _chunk4QNEI7VZcjs.startSession; exports.startSessionTitle = _chunk4QNEI7VZcjs.startSessionTitle; exports.withAgent = _chunk4QNEI7VZcjs.withAgent; exports.withMessageId = _chunk4QNEI7VZcjs.withMessageId; exports.withMute = _chunk4QNEI7VZcjs.withMute; exports.withOrganization = _chunk4QNEI7VZcjs.withOrganization; exports.withProperties = _chunk4QNEI7VZcjs.withProperties; exports.withServiceName = _chunk4QNEI7VZcjs.withServiceName; exports.withSessionId = _chunk4QNEI7VZcjs.withSessionId; exports.withUser = _chunk4QNEI7VZcjs.withUser;
|
package/dist/session.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Session,
|
|
3
|
+
SessionTitle,
|
|
4
|
+
addExternalLink,
|
|
5
|
+
callWithMessageId,
|
|
6
|
+
callWithMute,
|
|
7
|
+
callWithOrganization,
|
|
8
|
+
callWithProperties,
|
|
9
|
+
callWithServiceName,
|
|
10
|
+
callWithSessionId,
|
|
11
|
+
callWithUser,
|
|
12
|
+
emitEvent,
|
|
13
|
+
emitEventWithSessionId,
|
|
14
|
+
getActiveSession,
|
|
15
|
+
recordFeedback,
|
|
16
|
+
recordMetric,
|
|
17
|
+
setAgent,
|
|
18
|
+
setCurrentSpanCustomProperties,
|
|
19
|
+
setMessageId,
|
|
20
|
+
setOrganization,
|
|
21
|
+
setServiceName,
|
|
22
|
+
setSessionId,
|
|
23
|
+
setUser,
|
|
24
|
+
startAgent,
|
|
25
|
+
startSession,
|
|
26
|
+
startSessionTitle,
|
|
27
|
+
withAgent,
|
|
28
|
+
withMessageId,
|
|
29
|
+
withMute,
|
|
30
|
+
withOrganization,
|
|
31
|
+
withProperties,
|
|
32
|
+
withServiceName,
|
|
33
|
+
withSessionId,
|
|
34
|
+
withUser
|
|
35
|
+
} from "./chunk-EZCNPWKM.js";
|
|
36
|
+
import "./chunk-TDPQDITP.js";
|
|
37
|
+
import "./chunk-Y4HNUX3Q.js";
|
|
38
|
+
import "./chunk-GISL4K6Z.js";
|
|
39
|
+
import "./chunk-3RG5ZIWI.js";
|
|
40
|
+
|
|
41
|
+
// src/session.ts
|
|
42
|
+
import { SeverityNumber } from "@opentelemetry/api";
|
|
43
|
+
export {
|
|
44
|
+
Session,
|
|
45
|
+
SessionTitle,
|
|
46
|
+
SeverityNumber,
|
|
47
|
+
addExternalLink,
|
|
48
|
+
callWithMessageId,
|
|
49
|
+
callWithMute,
|
|
50
|
+
callWithOrganization,
|
|
51
|
+
callWithProperties,
|
|
52
|
+
callWithServiceName,
|
|
53
|
+
callWithSessionId,
|
|
54
|
+
callWithUser,
|
|
55
|
+
emitEvent,
|
|
56
|
+
emitEventWithSessionId,
|
|
57
|
+
getActiveSession,
|
|
58
|
+
recordFeedback,
|
|
59
|
+
recordMetric,
|
|
60
|
+
setAgent,
|
|
61
|
+
setCurrentSpanCustomProperties,
|
|
62
|
+
setMessageId,
|
|
63
|
+
setOrganization,
|
|
64
|
+
setServiceName,
|
|
65
|
+
setSessionId,
|
|
66
|
+
setUser,
|
|
67
|
+
startAgent,
|
|
68
|
+
startSession,
|
|
69
|
+
startSessionTitle,
|
|
70
|
+
withAgent,
|
|
71
|
+
withMessageId,
|
|
72
|
+
withMute,
|
|
73
|
+
withOrganization,
|
|
74
|
+
withProperties,
|
|
75
|
+
withServiceName,
|
|
76
|
+
withSessionId,
|
|
77
|
+
withUser
|
|
78
|
+
};
|
|
@@ -2,8 +2,8 @@ import './internal/instrumentation/auto-init.js';
|
|
|
2
2
|
export { Brizz, type IBrizzInitializeOptions } from './internal/sdk.js';
|
|
3
3
|
export { type IInstrumentModules, type IMCPManualModules, } from './internal/instrumentation/index.js';
|
|
4
4
|
export { emitEvent, emitEventWithSessionId } from './internal/log/index.js';
|
|
5
|
-
export { getSpanExporter, getSpanProcessor, getTracerProvider, withSessionId, callWithSessionId, withProperties, callWithProperties, withMute, callWithMute, setCurrentSpanCustomProperties, setUser, setOrganization, setMessageId, setSessionId, setServiceName, withServiceName, callWithServiceName, withUser, callWithUser, withOrganization, callWithOrganization, withMessageId, callWithMessageId, Session, SessionTitle, startAgent, withAgent, setAgent, startSession, startSessionTitle, getActiveSession, addExternalLink, recordFeedback, recordMetric, } from './internal/trace/index.js';
|
|
6
|
-
export type { IMuteOptions, AgentRef, IAgent, IAgentOptions } from './internal/trace/index.js';
|
|
5
|
+
export { getSpanExporter, getSpanProcessor, getTracerProvider, withSessionId, callWithSessionId, withProperties, callWithProperties, withMute, callWithMute, setCurrentSpanCustomProperties, setUser, setOrganization, setMessageId, setSessionId, setServiceName, withServiceName, callWithServiceName, withUser, callWithUser, withOrganization, callWithOrganization, withMessageId, callWithMessageId, Session, SessionTitle, startAgent, withAgent, setAgent, startSession, startSessionTitle, getActiveSession, addExternalLink, recordFeedback, recordMetric, decisionCall, recordDecisionCall, } from './internal/trace/index.js';
|
|
6
|
+
export type { IMuteOptions, AgentRef, IAgent, IAgentOptions, IDecisionCall, IDecisionCallOptions, IDecisionCallRecord, IDecisionCallUsage, } from './internal/trace/index.js';
|
|
7
7
|
export { getMetricsExporter, getMetricsReader } from './internal/metric/index.js';
|
|
8
8
|
export type { IMaskingConfig, ISpanMaskingConfig, ILogMaskingConfig, IEventMaskingConfig, IEventMaskingRule, MaskingMode, IAttributesMaskingRule, } from './internal/masking/index.js';
|
|
9
9
|
export { DEFAULT_PII_PATTERNS } from './internal/masking/patterns.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function errorType(error: unknown): string;
|
|
@@ -22,7 +22,7 @@ export declare const GEN_AI_PROMPT_NAME = "gen_ai.prompt.name";
|
|
|
22
22
|
export declare const GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
23
23
|
export declare const GEN_AI_OPERATION_EXECUTE_TOOL = "execute_tool";
|
|
24
24
|
export declare const NETWORK_TRANSPORT = "network.transport";
|
|
25
|
-
export
|
|
25
|
+
export { ERROR_TYPE } from '../../semantic-conventions.js';
|
|
26
26
|
export declare const ERROR_TYPE_TOOL = "tool_error";
|
|
27
27
|
export declare const ERROR_TYPE_TIMEOUT = "timeout";
|
|
28
28
|
export declare const ERROR_TYPE_CANCELLED = "cancelled";
|
|
@@ -4,14 +4,6 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opent
|
|
|
4
4
|
export declare const INSTRUMENTATION_NAME = "@brizz/sdk/typesafe";
|
|
5
5
|
export declare const SPAN_NAME = "typesafe.system_one";
|
|
6
6
|
export declare const PROVIDER_NAME = "typesafe";
|
|
7
|
-
export declare const OPERATION_NAME = "classify";
|
|
8
|
-
export declare const ATTR_OPERATION_NAME = "gen_ai.operation.name";
|
|
9
|
-
export declare const ATTR_PROVIDER_NAME = "gen_ai.provider.name";
|
|
10
|
-
export declare const ATTR_REQUEST_MODEL = "gen_ai.request.model";
|
|
11
|
-
export declare const ATTR_RESPONSE_MODEL = "gen_ai.response.model";
|
|
12
|
-
export declare const ATTR_INPUT_TOKENS = "gen_ai.usage.input_tokens";
|
|
13
|
-
export declare const ATTR_OUTPUT_TOKENS = "gen_ai.usage.output_tokens";
|
|
14
|
-
export declare const ATTR_INPUT_MESSAGES = "gen_ai.input.messages";
|
|
15
7
|
export declare const ATTR_QUESTIONS = "typesafe.questions";
|
|
16
8
|
export declare const ATTR_ANSWERS = "typesafe.answers";
|
|
17
9
|
interface ISystemOneRequestLike {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnyValue } from '@opentelemetry/api';
|
|
2
|
+
import { SeverityNumber } from '@opentelemetry/api';
|
|
3
|
+
export interface IEventSink {
|
|
4
|
+
emitEvent(name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
5
|
+
}
|
|
6
|
+
export declare function setEventSink(sink: IEventSink): void;
|
|
7
|
+
export declare function clearEventSink(sink: IEventSink): void;
|
|
8
|
+
export declare function emitEvent(name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
@@ -2,6 +2,8 @@ import type { AnyValue } from '@opentelemetry/api';
|
|
|
2
2
|
import { SeverityNumber } from '@opentelemetry/api';
|
|
3
3
|
import { LoggerProvider } from '@opentelemetry/sdk-logs';
|
|
4
4
|
import type { IResolvedBrizzConfig } from '../config.js';
|
|
5
|
+
export { emitEvent } from './emit.js';
|
|
6
|
+
export { emitEventWithSessionId } from '../trace/session.js';
|
|
5
7
|
export declare class LoggingModule {
|
|
6
8
|
private static instance;
|
|
7
9
|
static getInstance(): LoggingModule;
|
|
@@ -18,5 +20,3 @@ export declare class LoggingModule {
|
|
|
18
20
|
forceFlush(): Promise<void>;
|
|
19
21
|
shutdown(): Promise<void>;
|
|
20
22
|
}
|
|
21
|
-
export declare function emitEvent(name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
22
|
-
export declare function emitEventWithSessionId(sessionId: string, name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
@@ -61,3 +61,16 @@ export declare const METRIC_POLARITY_POSITIVE = "positive";
|
|
|
61
61
|
export declare const METRIC_POLARITY_NEGATIVE = "negative";
|
|
62
62
|
export declare const METRIC_SCOPE_SESSION = "session";
|
|
63
63
|
export declare const METRIC_SCOPE_TRACE = "trace";
|
|
64
|
+
export declare const GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
65
|
+
export declare const GEN_AI_OPERATION_CLASSIFY = "classify";
|
|
66
|
+
export declare const GEN_AI_PROVIDER_NAME = "gen_ai.provider.name";
|
|
67
|
+
export declare const GEN_AI_REQUEST_MODEL = "gen_ai.request.model";
|
|
68
|
+
export declare const GEN_AI_RESPONSE_MODEL = "gen_ai.response.model";
|
|
69
|
+
export declare const GEN_AI_USAGE_INPUT_TOKENS = "gen_ai.usage.input_tokens";
|
|
70
|
+
export declare const GEN_AI_USAGE_OUTPUT_TOKENS = "gen_ai.usage.output_tokens";
|
|
71
|
+
export declare const GEN_AI_INPUT_MESSAGES = "gen_ai.input.messages";
|
|
72
|
+
export declare const GEN_AI_OUTPUT_MESSAGES = "gen_ai.output.messages";
|
|
73
|
+
export declare const GEN_AI_OUTPUT_TYPE = "gen_ai.output.type";
|
|
74
|
+
export declare const GEN_AI_CONVERSATION_ID = "gen_ai.conversation.id";
|
|
75
|
+
export declare const GEN_AI_USAGE_COST_USD = "gen_ai.usage.cost_usd";
|
|
76
|
+
export declare const ERROR_TYPE = "error.type";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface IDecisionCallOptions {
|
|
2
|
+
provider: string;
|
|
3
|
+
model: string;
|
|
4
|
+
state: unknown;
|
|
5
|
+
questions: unknown;
|
|
6
|
+
requestModel?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IDecisionCallUsage {
|
|
9
|
+
inputTokens?: number;
|
|
10
|
+
outputTokens?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IDecisionCall {
|
|
13
|
+
setAnswers(answers: unknown): void;
|
|
14
|
+
setUsage(usage: IDecisionCallUsage): void;
|
|
15
|
+
setCost(costUsd: number): void;
|
|
16
|
+
}
|
|
17
|
+
export interface IDecisionCallRecord extends IDecisionCallOptions, IDecisionCallUsage {
|
|
18
|
+
answers?: unknown;
|
|
19
|
+
costUsd?: number;
|
|
20
|
+
startTime?: Date;
|
|
21
|
+
endTime?: Date;
|
|
22
|
+
}
|
|
23
|
+
export declare function decisionCall<T>(options: IDecisionCallOptions, callback: (call: IDecisionCall) => T): T;
|
|
24
|
+
export declare function recordDecisionCall(record: IDecisionCallRecord): void;
|
|
@@ -5,3 +5,5 @@ export { withSessionId, callWithSessionId, withProperties, callWithProperties, w
|
|
|
5
5
|
export type { IMuteOptions } from './session.js';
|
|
6
6
|
export { startAgent, withAgent, setAgent } from './agent.js';
|
|
7
7
|
export type { AgentRef, IAgent, IAgentOptions } from './agent.js';
|
|
8
|
+
export { decisionCall, recordDecisionCall } from './decision-call.js';
|
|
9
|
+
export type { IDecisionCall, IDecisionCallOptions, IDecisionCallRecord, IDecisionCallUsage, } from './decision-call.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Context, Span, AttributeValue } from '@opentelemetry/api';
|
|
1
|
+
import type { AnyValue, Context, Span, AttributeValue, SeverityNumber } from '@opentelemetry/api';
|
|
2
2
|
export declare function setCurrentSpanCustomProperties(properties: Record<string, AttributeValue>): void;
|
|
3
3
|
export declare function callWithProperties<A extends unknown[], F extends (...args: A) => ReturnType<F>>(properties: {
|
|
4
4
|
[name: string]: string;
|
|
@@ -107,6 +107,7 @@ export declare class SessionTitle {
|
|
|
107
107
|
setTitle(title: string): void;
|
|
108
108
|
}
|
|
109
109
|
export declare function getActiveSession(): Session | undefined;
|
|
110
|
+
export declare function emitEventWithSessionId(sessionId: string, name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
110
111
|
export declare function addExternalLink(url: string, options?: {
|
|
111
112
|
sessionId?: string;
|
|
112
113
|
title?: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { emitEvent } from './internal/log/emit.js';
|
|
2
|
+
export { emitEventWithSessionId, withSessionId, callWithSessionId, withProperties, callWithProperties, withMute, callWithMute, setCurrentSpanCustomProperties, setUser, setOrganization, setMessageId, setSessionId, setServiceName, withServiceName, callWithServiceName, withUser, callWithUser, withOrganization, callWithOrganization, withMessageId, callWithMessageId, Session, SessionTitle, startSession, startSessionTitle, getActiveSession, addExternalLink, recordFeedback, recordMetric, } from './internal/trace/session.js';
|
|
3
|
+
export type { IMuteOptions } from './internal/trace/session.js';
|
|
4
|
+
export { startAgent, withAgent, setAgent } from './internal/trace/agent.js';
|
|
5
|
+
export type { AgentRef, IAgent, IAgentOptions } from './internal/trace/agent.js';
|
|
6
|
+
export { SeverityNumber } from '@opentelemetry/api';
|
|
@@ -2,8 +2,8 @@ import './internal/instrumentation/auto-init.js';
|
|
|
2
2
|
export { Brizz, type IBrizzInitializeOptions } from './internal/sdk.js';
|
|
3
3
|
export { type IInstrumentModules, type IMCPManualModules, } from './internal/instrumentation/index.js';
|
|
4
4
|
export { emitEvent, emitEventWithSessionId } from './internal/log/index.js';
|
|
5
|
-
export { getSpanExporter, getSpanProcessor, getTracerProvider, withSessionId, callWithSessionId, withProperties, callWithProperties, withMute, callWithMute, setCurrentSpanCustomProperties, setUser, setOrganization, setMessageId, setSessionId, setServiceName, withServiceName, callWithServiceName, withUser, callWithUser, withOrganization, callWithOrganization, withMessageId, callWithMessageId, Session, SessionTitle, startAgent, withAgent, setAgent, startSession, startSessionTitle, getActiveSession, addExternalLink, recordFeedback, recordMetric, } from './internal/trace/index.js';
|
|
6
|
-
export type { IMuteOptions, AgentRef, IAgent, IAgentOptions } from './internal/trace/index.js';
|
|
5
|
+
export { getSpanExporter, getSpanProcessor, getTracerProvider, withSessionId, callWithSessionId, withProperties, callWithProperties, withMute, callWithMute, setCurrentSpanCustomProperties, setUser, setOrganization, setMessageId, setSessionId, setServiceName, withServiceName, callWithServiceName, withUser, callWithUser, withOrganization, callWithOrganization, withMessageId, callWithMessageId, Session, SessionTitle, startAgent, withAgent, setAgent, startSession, startSessionTitle, getActiveSession, addExternalLink, recordFeedback, recordMetric, decisionCall, recordDecisionCall, } from './internal/trace/index.js';
|
|
6
|
+
export type { IMuteOptions, AgentRef, IAgent, IAgentOptions, IDecisionCall, IDecisionCallOptions, IDecisionCallRecord, IDecisionCallUsage, } from './internal/trace/index.js';
|
|
7
7
|
export { getMetricsExporter, getMetricsReader } from './internal/metric/index.js';
|
|
8
8
|
export type { IMaskingConfig, ISpanMaskingConfig, ILogMaskingConfig, IEventMaskingConfig, IEventMaskingRule, MaskingMode, IAttributesMaskingRule, } from './internal/masking/index.js';
|
|
9
9
|
export { DEFAULT_PII_PATTERNS } from './internal/masking/patterns.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function errorType(error: unknown): string;
|
|
@@ -22,7 +22,7 @@ export declare const GEN_AI_PROMPT_NAME = "gen_ai.prompt.name";
|
|
|
22
22
|
export declare const GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
23
23
|
export declare const GEN_AI_OPERATION_EXECUTE_TOOL = "execute_tool";
|
|
24
24
|
export declare const NETWORK_TRANSPORT = "network.transport";
|
|
25
|
-
export
|
|
25
|
+
export { ERROR_TYPE } from '../../semantic-conventions.js';
|
|
26
26
|
export declare const ERROR_TYPE_TOOL = "tool_error";
|
|
27
27
|
export declare const ERROR_TYPE_TIMEOUT = "timeout";
|
|
28
28
|
export declare const ERROR_TYPE_CANCELLED = "cancelled";
|
|
@@ -4,14 +4,6 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opent
|
|
|
4
4
|
export declare const INSTRUMENTATION_NAME = "@brizz/sdk/typesafe";
|
|
5
5
|
export declare const SPAN_NAME = "typesafe.system_one";
|
|
6
6
|
export declare const PROVIDER_NAME = "typesafe";
|
|
7
|
-
export declare const OPERATION_NAME = "classify";
|
|
8
|
-
export declare const ATTR_OPERATION_NAME = "gen_ai.operation.name";
|
|
9
|
-
export declare const ATTR_PROVIDER_NAME = "gen_ai.provider.name";
|
|
10
|
-
export declare const ATTR_REQUEST_MODEL = "gen_ai.request.model";
|
|
11
|
-
export declare const ATTR_RESPONSE_MODEL = "gen_ai.response.model";
|
|
12
|
-
export declare const ATTR_INPUT_TOKENS = "gen_ai.usage.input_tokens";
|
|
13
|
-
export declare const ATTR_OUTPUT_TOKENS = "gen_ai.usage.output_tokens";
|
|
14
|
-
export declare const ATTR_INPUT_MESSAGES = "gen_ai.input.messages";
|
|
15
7
|
export declare const ATTR_QUESTIONS = "typesafe.questions";
|
|
16
8
|
export declare const ATTR_ANSWERS = "typesafe.answers";
|
|
17
9
|
interface ISystemOneRequestLike {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnyValue } from '@opentelemetry/api';
|
|
2
|
+
import { SeverityNumber } from '@opentelemetry/api';
|
|
3
|
+
export interface IEventSink {
|
|
4
|
+
emitEvent(name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
5
|
+
}
|
|
6
|
+
export declare function setEventSink(sink: IEventSink): void;
|
|
7
|
+
export declare function clearEventSink(sink: IEventSink): void;
|
|
8
|
+
export declare function emitEvent(name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
@@ -2,6 +2,8 @@ import type { AnyValue } from '@opentelemetry/api';
|
|
|
2
2
|
import { SeverityNumber } from '@opentelemetry/api';
|
|
3
3
|
import { LoggerProvider } from '@opentelemetry/sdk-logs';
|
|
4
4
|
import type { IResolvedBrizzConfig } from '../config.js';
|
|
5
|
+
export { emitEvent } from './emit.js';
|
|
6
|
+
export { emitEventWithSessionId } from '../trace/session.js';
|
|
5
7
|
export declare class LoggingModule {
|
|
6
8
|
private static instance;
|
|
7
9
|
static getInstance(): LoggingModule;
|
|
@@ -18,5 +20,3 @@ export declare class LoggingModule {
|
|
|
18
20
|
forceFlush(): Promise<void>;
|
|
19
21
|
shutdown(): Promise<void>;
|
|
20
22
|
}
|
|
21
|
-
export declare function emitEvent(name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
22
|
-
export declare function emitEventWithSessionId(sessionId: string, name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
@@ -61,3 +61,16 @@ export declare const METRIC_POLARITY_POSITIVE = "positive";
|
|
|
61
61
|
export declare const METRIC_POLARITY_NEGATIVE = "negative";
|
|
62
62
|
export declare const METRIC_SCOPE_SESSION = "session";
|
|
63
63
|
export declare const METRIC_SCOPE_TRACE = "trace";
|
|
64
|
+
export declare const GEN_AI_OPERATION_NAME = "gen_ai.operation.name";
|
|
65
|
+
export declare const GEN_AI_OPERATION_CLASSIFY = "classify";
|
|
66
|
+
export declare const GEN_AI_PROVIDER_NAME = "gen_ai.provider.name";
|
|
67
|
+
export declare const GEN_AI_REQUEST_MODEL = "gen_ai.request.model";
|
|
68
|
+
export declare const GEN_AI_RESPONSE_MODEL = "gen_ai.response.model";
|
|
69
|
+
export declare const GEN_AI_USAGE_INPUT_TOKENS = "gen_ai.usage.input_tokens";
|
|
70
|
+
export declare const GEN_AI_USAGE_OUTPUT_TOKENS = "gen_ai.usage.output_tokens";
|
|
71
|
+
export declare const GEN_AI_INPUT_MESSAGES = "gen_ai.input.messages";
|
|
72
|
+
export declare const GEN_AI_OUTPUT_MESSAGES = "gen_ai.output.messages";
|
|
73
|
+
export declare const GEN_AI_OUTPUT_TYPE = "gen_ai.output.type";
|
|
74
|
+
export declare const GEN_AI_CONVERSATION_ID = "gen_ai.conversation.id";
|
|
75
|
+
export declare const GEN_AI_USAGE_COST_USD = "gen_ai.usage.cost_usd";
|
|
76
|
+
export declare const ERROR_TYPE = "error.type";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface IDecisionCallOptions {
|
|
2
|
+
provider: string;
|
|
3
|
+
model: string;
|
|
4
|
+
state: unknown;
|
|
5
|
+
questions: unknown;
|
|
6
|
+
requestModel?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IDecisionCallUsage {
|
|
9
|
+
inputTokens?: number;
|
|
10
|
+
outputTokens?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IDecisionCall {
|
|
13
|
+
setAnswers(answers: unknown): void;
|
|
14
|
+
setUsage(usage: IDecisionCallUsage): void;
|
|
15
|
+
setCost(costUsd: number): void;
|
|
16
|
+
}
|
|
17
|
+
export interface IDecisionCallRecord extends IDecisionCallOptions, IDecisionCallUsage {
|
|
18
|
+
answers?: unknown;
|
|
19
|
+
costUsd?: number;
|
|
20
|
+
startTime?: Date;
|
|
21
|
+
endTime?: Date;
|
|
22
|
+
}
|
|
23
|
+
export declare function decisionCall<T>(options: IDecisionCallOptions, callback: (call: IDecisionCall) => T): T;
|
|
24
|
+
export declare function recordDecisionCall(record: IDecisionCallRecord): void;
|
|
@@ -5,3 +5,5 @@ export { withSessionId, callWithSessionId, withProperties, callWithProperties, w
|
|
|
5
5
|
export type { IMuteOptions } from './session.js';
|
|
6
6
|
export { startAgent, withAgent, setAgent } from './agent.js';
|
|
7
7
|
export type { AgentRef, IAgent, IAgentOptions } from './agent.js';
|
|
8
|
+
export { decisionCall, recordDecisionCall } from './decision-call.js';
|
|
9
|
+
export type { IDecisionCall, IDecisionCallOptions, IDecisionCallRecord, IDecisionCallUsage, } from './decision-call.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Context, Span, AttributeValue } from '@opentelemetry/api';
|
|
1
|
+
import type { AnyValue, Context, Span, AttributeValue, SeverityNumber } from '@opentelemetry/api';
|
|
2
2
|
export declare function setCurrentSpanCustomProperties(properties: Record<string, AttributeValue>): void;
|
|
3
3
|
export declare function callWithProperties<A extends unknown[], F extends (...args: A) => ReturnType<F>>(properties: {
|
|
4
4
|
[name: string]: string;
|
|
@@ -107,6 +107,7 @@ export declare class SessionTitle {
|
|
|
107
107
|
setTitle(title: string): void;
|
|
108
108
|
}
|
|
109
109
|
export declare function getActiveSession(): Session | undefined;
|
|
110
|
+
export declare function emitEventWithSessionId(sessionId: string, name: string, attributes?: Record<string, string | number | boolean>, body?: AnyValue, severityNumber?: SeverityNumber): void;
|
|
110
111
|
export declare function addExternalLink(url: string, options?: {
|
|
111
112
|
sessionId?: string;
|
|
112
113
|
title?: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { emitEvent } from './internal/log/emit.js';
|
|
2
|
+
export { emitEventWithSessionId, withSessionId, callWithSessionId, withProperties, callWithProperties, withMute, callWithMute, setCurrentSpanCustomProperties, setUser, setOrganization, setMessageId, setSessionId, setServiceName, withServiceName, callWithServiceName, withUser, callWithUser, withOrganization, callWithOrganization, withMessageId, callWithMessageId, Session, SessionTitle, startSession, startSessionTitle, getActiveSession, addExternalLink, recordFeedback, recordMetric, } from './internal/trace/session.js';
|
|
3
|
+
export type { IMuteOptions } from './internal/trace/session.js';
|
|
4
|
+
export { startAgent, withAgent, setAgent } from './internal/trace/agent.js';
|
|
5
|
+
export type { AgentRef, IAgent, IAgentOptions } from './internal/trace/agent.js';
|
|
6
|
+
export { SeverityNumber } from '@opentelemetry/api';
|