Skip to content

embed.active_agent

View Markdown

An embedding request made through ActiveAgent.

Source Active Agent Category LLM Fields 19 honeybadger-ruby

Fields

19
FieldTypeDescription
event_typestringAllowed value: embed.active_agent.
providerstringModel provider name.
provider_modulestringActiveAgent provider module class name.
modelstringEmbedding model identifier.
trace_idstringTrace ID for correlating events within a single agent run.
input_sizeintegerNumber of input strings submitted for embedding.
embedding_countintegerNumber of embedding vectors returned.
encoding_formatstringEncoding format requested, e.g. "float".
dimensionsintegerEmbedding vector dimensions.
response_modelstringModel identifier as returned by the provider.
response_idstringProvider-assigned response ID.
usageobjectToken usage reported by the provider.
usage.input_tokensinteger
usage.total_tokensinteger
durationnumberDuration in milliseconds.
instrumenter_idstringRails instrumenter UUID.
request_idstringRails request UUID, present on any event fired during a web request context. Merged globally by the Honeybadger agent.
hostnamestringServer hostname. Attached to every event by default (events.attach_hostname).
environmentstringApplication environment, e.g. "production". Attached to every event by default (events.attach_environment).

Example

{
"event_type": "embed.active_agent",
"provider": "OpenAI",
"provider_module": "OpenAI::Embeddings",
"model": "text-embedding-3-small",
"trace_id": "9b4f2a6e-1c8d-4e7a-b3f5-6d2c9e0a4b18",
"input_size": 3,
"embedding_count": 3,
"encoding_format": "float",
"dimensions": 1536,
"response_model": "text-embedding-3-small",
"response_id": "embd-9f8e7d6c5b4a3210fedc",
"usage": {
"input_tokens": 42,
"total_tokens": 42
},
"duration": 184.27,
"instrumenter_id": "d9f4a7b2c1e8d3f6a0b5",
"request_id": "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01",
"hostname": "web-1.example.com",
"environment": "production"
}