@sockethub/server 5.0.0-alpha.23 → 5.0.0-alpha.25
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 +11 -0
- package/dist/api-info.d.ts +39 -0
- package/dist/bootstrap/load-platforms.d.ts +1 -0
- package/dist/http/actions.d.ts +4 -0
- package/dist/index.js +8066 -49042
- package/dist/message-handlers.d.ts +4 -0
- package/dist/observability.d.ts +12 -1
- package/dist/platform.js +1495 -42524
- package/dist/sentry.d.ts +2 -1
- package/dist/sockethub.d.ts +0 -6
- package/dist/version.d.ts +14 -0
- package/package.json +16 -16
- package/res/sockethub-client.js +29 -17681
- package/dist/index.js.map +0 -1513
- package/dist/platform.js.map +0 -1247
- package/dist/sentry_cpu_profiler-darwin-arm64-108-x9pvc8sn.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-115-f1zntp0c.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-127-bkbjv4gh.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-137-bnbev7dh.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-arm64-147-zca3q0df.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-108-k9ejvb8b.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-115-5y3qs5bt.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-127-a90vbs03.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-137-93m96kya.node +0 -0
- package/dist/sentry_cpu_profiler-darwin-x64-147-jyxe4y9b.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-108-mqfvew5f.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-115-mqfvew5f.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-127-3tk3cast.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-137-0718g7v6.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-glibc-147-ap99rr48.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-108-g2bwvb9e.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-115-g2bwvb9e.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-127-g2bwvb9e.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-137-fda5zb96.node +0 -0
- package/dist/sentry_cpu_profiler-linux-arm64-musl-147-ky1pmw1r.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-108-b4v94gym.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-115-b4v94gym.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-127-77sdzmpr.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-137-5pe8gxxz.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-glibc-147-08jxr90t.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-108-09j0f4jg.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-115-09j0f4jg.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-127-saq18043.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-137-p73z6xnr.node +0 -0
- package/dist/sentry_cpu_profiler-linux-x64-musl-147-bg1yh1wf.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-108-mse3z67f.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-115-p638z8w6.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-127-1t1rmdnc.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-137-fd76n204.node +0 -0
- package/dist/sentry_cpu_profiler-win32-x64-147-w12dzy7w.node +0 -0
- package/res/sockethub-client.min.js +0 -32
|
@@ -21,6 +21,10 @@ export interface MessageHandlersOptions {
|
|
|
21
21
|
clientIp?: string;
|
|
22
22
|
platformSessionId?: string;
|
|
23
23
|
onPlatformInstance?: (platformInstance: PlatformInstance) => void;
|
|
24
|
+
/** Bounded telemetry dimension identifying the public request path. */
|
|
25
|
+
transport?: "socket" | "http";
|
|
26
|
+
/** Called only after platform and action labels pass schema validation. */
|
|
27
|
+
onPlatformAction?: (platform: string, action: string) => void;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* Normalize middleware errors into payload-safe error responses.
|
package/dist/observability.d.ts
CHANGED
|
@@ -2,10 +2,21 @@ type Attributes = Record<string, string | number | boolean>;
|
|
|
2
2
|
export interface ObservabilityAdapter {
|
|
3
3
|
count(name: string, value?: number, attributes?: Attributes): void;
|
|
4
4
|
gauge(name: string, value: number, attributes?: Attributes): void;
|
|
5
|
-
|
|
5
|
+
distribution(name: string, value: number, unit: string, attributes?: Attributes): void;
|
|
6
|
+
startAction(platform: string, action: string, attributes?: Attributes): (error?: boolean) => void;
|
|
6
7
|
}
|
|
7
8
|
export declare function setObservabilityAdapter(next: ObservabilityAdapter): void;
|
|
8
9
|
export declare const observability: ObservabilityAdapter;
|
|
10
|
+
export interface ConnectionTelemetry {
|
|
11
|
+
recordPlatform(platform: string): void;
|
|
12
|
+
end(): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Aggregate one socket connection without exporting its socket/session id.
|
|
16
|
+
* Platform names have already come from the validated registry by the time
|
|
17
|
+
* recordPlatform is called.
|
|
18
|
+
*/
|
|
19
|
+
export declare function startConnectionTelemetry(): ConnectionTelemetry;
|
|
9
20
|
export declare function resetObservabilityForTesting(): void;
|
|
10
21
|
/** Remove common network/user identifiers before forwarding operational logs. */
|
|
11
22
|
export declare function redactObservabilityLog(message: string): string;
|