apps 0.0.1-beta.60 → 0.0.1-beta.62
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/framework-reference.json +1 -1
- package/js/{chunk-FFSO3J76.js → chunk-2PY7V2QX.js} +66 -45
- package/js/{chunk-IJ6Y2KFQ.js → chunk-BMM72CUD.js} +1 -1
- package/js/{chunk-ZYTA5MK4.js → chunk-CRKOG2C6.js} +2 -2
- package/js/{chunk-MZNCLCGJ.js → chunk-DYNZ3QTH.js} +6 -6
- package/js/{chunk-CWW7QWP4.js → chunk-FSSQFISD.js} +3 -3
- package/js/{chunk-ERJ5JGCB.js → chunk-JAHCB3OJ.js} +2 -2
- package/js/{chunk-T53665H5.js → chunk-JQAZD6FU.js} +1 -1
- package/js/{chunk-2ARGIHVD.js → chunk-OU6KQWDF.js} +2 -2
- package/js/{chunk-NS3DEHVA.js → chunk-QUNJB4CO.js} +1 -1
- package/js/{chunk-JIU25DIL.js → chunk-TAELFJS6.js} +1 -1
- package/js/{chunk-MRV45IXB.js → chunk-UVD2O773.js} +4 -4
- package/js/client.js +1 -1
- package/js/effect.js +7 -7
- package/js/graphql.js +9 -9
- package/js/host.js +7 -7
- package/js/index.js +4 -4
- package/js/mcp/effect.js +9 -9
- package/js/mcp/stdio.js +9 -9
- package/js/mcp.js +11 -11
- package/js/openapi.js +6 -6
- package/js/skills.js +4 -4
- package/js/ui/serving.js +1 -1
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/telemetry/src/index.d.ts +1 -1
- package/types/telemetry/src/span-attributes.d.ts +17 -1
|
@@ -7,4 +7,4 @@ export { TraceContext, currentTraceContext, externalTrace, traceLinks } from "./
|
|
|
7
7
|
export { pendingSpan } from "./pending-span.js";
|
|
8
8
|
export { makeOwnershipAccounting, measuredSpan, owned, ownedBy, ownerAttribute, type Owner, type SpanMeasure, } from "./ownership.js";
|
|
9
9
|
export { recordWorkerMeasurements } from "./measurements.js";
|
|
10
|
-
export { allowlistedSpans, httpSpanAttributeAllowlist, spanAttributeAllowed, } from "./span-attributes.js";
|
|
10
|
+
export { allowlistedSpans, httpSpanAttributeAllowlist, recordRoute, routeTemplates, spanAttributeAllowed, } from "./span-attributes.js";
|
|
@@ -18,11 +18,27 @@
|
|
|
18
18
|
*
|
|
19
19
|
* Attributes outside these namespaces are the product's own and pass through.
|
|
20
20
|
*/
|
|
21
|
-
import { Layer } from "effect";
|
|
21
|
+
import { Effect, Layer } from "effect";
|
|
22
22
|
/** Every HTTP attribute an exported span may carry. */
|
|
23
23
|
export declare const httpSpanAttributeAllowlist: ReadonlySet<string>;
|
|
24
24
|
/** Record this attribute? HTTP names must be allowlisted; product names pass through. */
|
|
25
25
|
export declare const spanAttributeAllowed: (key: string) => boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Record the template of a route whose path an app or its caller chose, in place of the router's
|
|
28
|
+
* wildcard: an app's own page or asset, or an app's outbound request. Its last parameter stands
|
|
29
|
+
* for the rest of the path. It annotates the current span, so call it from the request's handler.
|
|
30
|
+
*/
|
|
31
|
+
export declare const recordRoute: (template: `/${string}`) => Effect.Effect<void, never, never>;
|
|
32
|
+
/**
|
|
33
|
+
* A fixed set of endpoint templates served under one wildcard route, such as Better Auth's
|
|
34
|
+
* endpoints under `/api/auth/*`. `:name` stands for one segment. `record` names the request's
|
|
35
|
+
* endpoint by its template and leaves the wildcard for any path the set does not hold, so a span
|
|
36
|
+
* keeps which endpoint ran without any segment the caller chose.
|
|
37
|
+
*/
|
|
38
|
+
export declare const routeTemplates: (templates: Iterable<`/${string}`>) => {
|
|
39
|
+
match: (path: string) => `/${string}` | undefined;
|
|
40
|
+
record: (path: string) => Effect.Effect<void, never, never>;
|
|
41
|
+
};
|
|
26
42
|
/** Wrap whichever tracer is already in scope; provide this above the exporter. */
|
|
27
43
|
export declare const spanAttributes: (clock?: "system" | "cloudflare-io", recordAll?: boolean) => Layer.Layer<never>;
|
|
28
44
|
/** Header and URL filtering without making an unsupported claim about the runtime clock. */
|