superapp-miniapp-invoke-native 1.12.0 → 1.12.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/lib/main.d.ts +5 -15
- package/lib/main.js +925 -931
- package/lib/main.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/main.d.ts
CHANGED
|
@@ -458,25 +458,16 @@ export declare type OtelAttributeValue = string | number | boolean;
|
|
|
458
458
|
|
|
459
459
|
declare class OtelPlugins implements OtelPluginsHandleType {
|
|
460
460
|
recordTrace(params: RecordOtelTraceParams): Promise<RecordOtelTraceResult>;
|
|
461
|
-
recordSpan(params: RecordOtelSpanParams): Promise<RecordOtelTraceResult>;
|
|
462
461
|
getStatus(): Promise<OtelPluginStatus>;
|
|
463
462
|
}
|
|
464
463
|
|
|
465
464
|
export declare interface OtelPluginsHandleType {
|
|
466
465
|
recordTrace(params: RecordOtelTraceParams): Promise<RecordOtelTraceResult>;
|
|
467
|
-
recordSpan(params: RecordOtelSpanParams): Promise<RecordOtelTraceResult>;
|
|
468
466
|
getStatus(): Promise<OtelPluginStatus>;
|
|
469
467
|
}
|
|
470
468
|
|
|
471
469
|
export declare interface OtelPluginStatus {
|
|
472
470
|
recordTrace: boolean;
|
|
473
|
-
recordSpan: boolean;
|
|
474
|
-
protocolVersion: typeof OTEL_PLUGIN_PROTOCOL_VERSION;
|
|
475
|
-
maxSpansPerTrace: number;
|
|
476
|
-
maxDepth: number;
|
|
477
|
-
maxAttributesPerSpan: number;
|
|
478
|
-
maxEventsPerSpan: number;
|
|
479
|
-
maxPayloadBytes: number;
|
|
480
471
|
}
|
|
481
472
|
|
|
482
473
|
export declare type OtelRecordCode = "OK" | "UNSUPPORTED" | "DISABLED" | "INVALID_PARAMETERS" | "INVALID_TREE" | "RATE_LIMITED" | "INTERNAL_ERROR";
|
|
@@ -565,12 +556,11 @@ export declare interface RecordedSpanIdentity {
|
|
|
565
556
|
children?: RecordedSpanIdentity[];
|
|
566
557
|
}
|
|
567
558
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
559
|
+
/**
|
|
560
|
+
* One completed span, optionally with nested child spans. The shell creates all
|
|
561
|
+
* real traceId/spanId values and derives parent-child relationships from children.
|
|
562
|
+
*/
|
|
563
|
+
export declare type RecordOtelTraceParams = MiniappSpanInput;
|
|
574
564
|
|
|
575
565
|
export declare interface RecordOtelTraceResult {
|
|
576
566
|
/** True means the shell accepted and ended the spans; export remains asynchronous. */
|