Class: AgentSpanClient
Prefactor TypeScript SDK / @prefactor/core / AgentSpanClient
Class: AgentSpanClient
Section titled “Class: AgentSpanClient”Defined in: packages/core/src/transport/http/agent-span-client.ts:43
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AgentSpanClient(
httpClient):AgentSpanClient
Defined in: packages/core/src/transport/http/agent-span-client.ts:44
Parameters
Section titled “Parameters”httpClient
Section titled “httpClient”Returns
Section titled “Returns”AgentSpanClient
Methods
Section titled “Methods”create()
Section titled “create()”create(
payload):Promise<AgentSpanResponse>
Defined in: packages/core/src/transport/http/agent-span-client.ts:46
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”Promise<AgentSpanResponse>
finish()
Section titled “finish()”finish(
spanId,timestamp,options?):Promise<AgentSpanResponse>
Defined in: packages/core/src/transport/http/agent-span-client.ts:53
Parameters
Section titled “Parameters”spanId
Section titled “spanId”string
timestamp
Section titled “timestamp”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<AgentSpanResponse>