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:35
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AgentSpanClient(
httpClient):AgentSpanClient
Defined in: packages/core/src/transport/http/agent-span-client.ts:36
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:38
Parameters
Section titled “Parameters”payload
Section titled “payload”Returns
Section titled “Returns”Promise<AgentSpanResponse>
finish()
Section titled “finish()”finish(
spanId,timestamp,options?):Promise<void>
Defined in: packages/core/src/transport/http/agent-span-client.ts:45
Parameters
Section titled “Parameters”spanId
Section titled “spanId”string
timestamp
Section titled “timestamp”string
options?
Section titled “options?”Returns
Section titled “Returns”Promise<void>