@zuplo/runtime 6.65.8 → 6.66.2
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/out/esm/index.js +70 -70
- package/out/esm/index.js.map +1 -1
- package/out/types/index.d.ts +52 -0
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Attributes } from "@opentelemetry/api";
|
|
1
2
|
import { CallToolRequest } from "@zuplo/mcp/types";
|
|
2
3
|
import { CallToolResult } from "@zuplo/mcp/types";
|
|
3
4
|
import { KeyLike } from "jose";
|
|
@@ -6804,6 +6805,57 @@ export declare interface OpenMeterInboundPolicyOptions {
|
|
|
6804
6805
|
subjectPath?: string;
|
|
6805
6806
|
}
|
|
6806
6807
|
|
|
6808
|
+
/**
|
|
6809
|
+
* Context for adding per-request attributes to OTel metrics
|
|
6810
|
+
* @public
|
|
6811
|
+
*/
|
|
6812
|
+
declare interface OTelMetricsContext {
|
|
6813
|
+
attributes: Attributes;
|
|
6814
|
+
}
|
|
6815
|
+
|
|
6816
|
+
/**
|
|
6817
|
+
* Options for the OpenTelemetry metrics plugin
|
|
6818
|
+
* @public
|
|
6819
|
+
*/
|
|
6820
|
+
declare interface OTelMetricsOptions {
|
|
6821
|
+
/**
|
|
6822
|
+
* The OTLP HTTP endpoint URL (e.g., "https://otel-collector:4318/v1/metrics")
|
|
6823
|
+
*/
|
|
6824
|
+
url: string;
|
|
6825
|
+
/**
|
|
6826
|
+
* Additional headers to send with the request (e.g., for authentication)
|
|
6827
|
+
*/
|
|
6828
|
+
headers?: Record<string, string>;
|
|
6829
|
+
/**
|
|
6830
|
+
* Resource attributes to include with all metrics
|
|
6831
|
+
*/
|
|
6832
|
+
attributes?: Attributes;
|
|
6833
|
+
/**
|
|
6834
|
+
* Which metrics to send
|
|
6835
|
+
*/
|
|
6836
|
+
metrics?: MetricsType;
|
|
6837
|
+
/**
|
|
6838
|
+
* Which request properties to include as metric attributes
|
|
6839
|
+
*/
|
|
6840
|
+
include?: IncludeMetrics;
|
|
6841
|
+
}
|
|
6842
|
+
|
|
6843
|
+
/**
|
|
6844
|
+
* OpenTelemetry metrics plugin
|
|
6845
|
+
* @public
|
|
6846
|
+
*/
|
|
6847
|
+
export declare class OTelMetricsPlugin extends MetricsPlugin {
|
|
6848
|
+
private options;
|
|
6849
|
+
constructor(options: OTelMetricsOptions);
|
|
6850
|
+
/* Excluded from this release type: getTransport */
|
|
6851
|
+
/**
|
|
6852
|
+
* Set per-request context for OTel metrics
|
|
6853
|
+
* @param context - The Zuplo context
|
|
6854
|
+
* @param data - The OTel metrics context with attributes to add
|
|
6855
|
+
*/
|
|
6856
|
+
static setContext(context: ZuploContext, data: OTelMetricsContext): void;
|
|
6857
|
+
}
|
|
6858
|
+
|
|
6807
6859
|
/**
|
|
6808
6860
|
* A policy that can modify the outgoing HTTP response before it is returned
|
|
6809
6861
|
* to the client. Outbound policies run after the handler has generated a response.
|