View as Markdown

SDK reference · Node SDK

prov.trace.shares

prov.trace.shares in the Node SDK: 3 methods. The trace.shares methods.

Methods

create

prov.trace.shares.create(traceId: string, params?: { mask?: "public" | "account"; expiresIn?: number }): Promise<{ id: string; token: string; mask: string; expiresAt: string | null; shareUrl: string; shareApiUrl: string }>

Calls POST /v1/trace/traces/{id}/share.

revoke

prov.trace.shares.revoke(traceId: string): Promise<{ id: string; object: "trace_share"; deleted: true; revoked: number }>

Revoke every share link of a trace: {id: traceId, object: "trace_share", deleted: true, revoked}.

Calls DELETE /v1/trace/traces/{id}/share.

get

prov.trace.shares.get(id: string, token: string): Promise<Record<string, unknown>>

The public, keyless, masked render of a share: its id in the path, its token in the query.

Calls GET /v1/trace/shares/{id}.

Was this page helpful? Send us feedback

LLM? Read llms.txt.