# Which span attributes do OpenLLMetry, OpenInference and OpenLIT emit? (29 Oct 2026, IST)

One identical chat-completion call (model gpt-4o-mini) through the official openai Python SDK 2.54.0, sent to a local fake OpenAI server (fake_openai.py) that returns a fixed reply. No real model, no API key, no spend. Each instrumentor ran in its own process; spans captured with the OpenTelemetry SDK in-memory exporter (run_otel.py) and dumped to JSON.

Versions: see versions.txt (opentelemetry-instrumentation-openai 0.62.4 = OpenLLMetry; openinference-instrumentation-openai 0.1.66; openlit 1.45.0; opentelemetry-sdk 1.45.1).

| Instrumentor | Spans | LLM span name | Attribute keys on the LLM span | Convention |
|---|---|---|---|---|
| OpenLLMetry 0.62.4 | 1 | openai.chat | 13, all gen_ai.* (operation.name, provider.name, request/response model, response id, finish_reasons, usage input/output/total tokens, input/output messages) | OpenTelemetry GenAI (gen_ai.*) |
| OpenInference 0.1.66 | 1 | ChatCompletion | 16: llm.* (model_name, system, token_count.prompt/completion/total, input/output messages), input.value, output.value, openinference.span.kind=LLM; no gen_ai.* keys | OpenInference's own convention |
| OpenLIT 1.45.0 | 2 | chat gpt-4o-mini (+ an HTTP "POST" span) | 32: gen_ai.* plus request parameters (temperature, top_p, seed...), cache-token counts, time to first token, gen_ai.usage.cost (computed from OpenLIT's own price table), service.name, deployment.environment | gen_ai.* plus OpenLIT extras |

Notes: openlit.init() has no tracer argument in 1.45.0 (TypeError on our first try); with no OTLP endpoint set, it also prints spans to the console.
Files: spans-openllmetry.json, spans-openinference.json, spans-openlit.json.
