Skip to content

Logs in Telemetry

Every call as a step in the trace of its use case, with the attributes it carries and what it never carries.

Applies to EngineCloud
View as Markdown
On this page
  1. What a span carries
  2. What it never carries
  3. Problems

Every call is a span: a step with a start, an end and what happened, inside the trace of the request that made it. In Sypnia Cloud the spans go to your project’s Telemetry with no setup. Self-hosted, set SYPNIA_GATEWAY_OTLP_ENDPOINT and they go to Telemetry or any OpenTelemetry tool.

What a span carries

AttributeExample
gen_ai.operation.namechat, embeddings
gen_ai.provider.nameopenrouter, aws.bedrock
gen_ai.request.model, gen_ai.response.modelthe model asked for and the one that answered
gen_ai.usage.input_tokens, gen_ai.usage.output_tokens412, 38
gen_ai.usage.cached_input_tokens350
gen_ai.response.finish_reasons["stop"]
sypnia.ai.task, sypnia.ai.route_versionallergen-answer, 12
sypnia.ai.creditsthe credits charged
sypnia.ai.time_to_first_token_ms420
sypnia.ai.cachehit, miss
sypnia.ai.call_idthe id support asks for
sypnia.caseask-about-a-product
enduser.idthe person’s id, hashed

Each fallback tried is a child span with its model and why it failed. The span’s name is chat allergen-answer.

What it never carries

What was asked and what was answered. A trace shows that a question took 1.2 seconds and cost so much; it never shows the question.

Problems

Repeated failures become problems in Telemetry like any other: «12 customers got no answer about allergens in the last hour: every model of allergen-answer timed out».

  1. What a span carries
  2. What it never carries
  3. Problems

    Search pages, sections and terms