Skip to content

Spans

Operations for the Spans service collection.

LanguageLast Update
Pythonv1.6.5
PowerShell
Go
TypeScript
Rust
Ruby

OperationDescription
EntitiesSpansV1
entities_spans_v1
Retrieve spans for the provided ids.
QueriesSpansV1
queries_spans_v1
Query spans based on the provided filters.

Retrieve spans for the provided ids.

Method GET
Route /agentic-studio/entities/spans/v1
Scope Charlotte AI Agent Definition: READ
PEP 8 entities_spans_v1
ids query · string or list of strings
IDs of entities to retrieve. Maximum of 1000 ids per request.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import Spans
falcon = Spans(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.entities_spans_v1(ids=id_list)
print(response)
[
{
"attributes": {},
"created_by": {},
"duration_ms": 0,
"end_time": "string",
"error": {},
"id": "string",
"name": "string",
"parent_span_id": "string",
"span_id": "string",
"span_type": "string",
"start_time": "string",
"status": "string",
"trace_id": "string"
}
]


Query spans based on the provided filters.

Method GET
Route /agentic-studio/queries/spans/v1
Scope Charlotte AI Agent Definition: READ
PEP 8 queries_spans_v1
offset query · integer
Starting index of overall result set from which to return ids.
limit query · integer
Number of IDs to return.
sort query · string
Possible order by fields. E.g.: ‘start_time|desc’.
filter query · string
FQL query specifying the filter parameters.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import Spans
falcon = Spans(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.queries_spans_v1(offset=integer,
limit=integer,
sort="string",
filter="string")
print(response)
[
"string"
]