@frontmcp/observability 1.9.1-rc.1 → 1.9.1-rc.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/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/observability",
|
|
3
|
-
"version": "1.9.1-rc.
|
|
3
|
+
"version": "1.9.1-rc.3",
|
|
4
4
|
"description": "OpenTelemetry instrumentation, structured JSON logging, and request log objects for FrontMCP",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@opentelemetry/api": "^1.9.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@frontmcp/sdk": "1.9.1-rc.
|
|
55
|
-
"@frontmcp/utils": "1.9.1-rc.
|
|
54
|
+
"@frontmcp/sdk": "1.9.1-rc.3",
|
|
55
|
+
"@frontmcp/utils": "1.9.1-rc.3",
|
|
56
56
|
"@opentelemetry/exporter-trace-otlp-http": "^0.219.0",
|
|
57
57
|
"@opentelemetry/sdk-node": "^0.219.0",
|
|
58
58
|
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/observability",
|
|
3
|
-
"version": "1.9.1-rc.
|
|
3
|
+
"version": "1.9.1-rc.3",
|
|
4
4
|
"description": "OpenTelemetry instrumentation, structured JSON logging, and request log objects for FrontMCP",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@opentelemetry/api": "^1.9.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@frontmcp/sdk": "1.9.1-rc.
|
|
55
|
-
"@frontmcp/utils": "1.9.1-rc.
|
|
54
|
+
"@frontmcp/sdk": "1.9.1-rc.3",
|
|
55
|
+
"@frontmcp/utils": "1.9.1-rc.3",
|
|
56
56
|
"@opentelemetry/exporter-trace-otlp-http": "^0.219.0",
|
|
57
57
|
"@opentelemetry/sdk-node": "^0.219.0",
|
|
58
58
|
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Module augmentation for TypeScript — adds `this.telemetry` to
|
|
3
|
-
* execution
|
|
2
|
+
* Module augmentation for TypeScript — adds `this.telemetry` to every
|
|
3
|
+
* execution context: ExecutionContextBase (ToolContext, ResourceContext,
|
|
4
|
+
* AgentContext, JobContext, SkillContext, ...) and PromptContext.
|
|
4
5
|
*
|
|
5
6
|
* This file provides type information only. The runtime getter is
|
|
6
7
|
* installed by the SDK's context extension mechanism when the
|
|
7
|
-
* ObservabilityPlugin registers its `contextExtensions
|
|
8
|
+
* ObservabilityPlugin registers its `contextExtensions`, on the same two
|
|
9
|
+
* prototypes: ExecutionContextBase and PromptContext.
|
|
8
10
|
*/
|
|
9
11
|
import type { TelemetryAccessor } from './telemetry.accessor';
|
|
10
12
|
declare module '@frontmcp/sdk' {
|
|
@@ -32,4 +34,8 @@ declare module '@frontmcp/sdk' {
|
|
|
32
34
|
*/
|
|
33
35
|
readonly telemetry: TelemetryAccessor;
|
|
34
36
|
}
|
|
37
|
+
interface PromptContext {
|
|
38
|
+
/** Telemetry API — create spans, add events, set attributes. Available when ObservabilityPlugin is installed. */
|
|
39
|
+
readonly telemetry: TelemetryAccessor;
|
|
40
|
+
}
|
|
35
41
|
}
|