armanunix
armanunix
The Anthropic instrumentation (`opentelemetry-instrumentation-anthropic` 0.62.4 and current `main`) has the same behavior with default settings: generator `messages` and `tools` are consumed before the request is sent. | Input passed as...
The span still records the consumed messages, so the trace looks correct while the request is not. With `messages` passed as a generator, the span's `gen_ai.input.messages` contains the user message,...
The Anthropic instrumentation has the same gap for `gen_ai.request.stop_sequences`: `stop_sequences` is sent in the request but never recorded on the span. `span_utils.set_input_attributes` sets model, max_tokens, temperature, top_p, frequency_penalty and presence_penalty,...
The same in **opentelemetry-instrumentation-ollama 0.62.4** (ollama 0.6.3): after `OllamaInstrumentor().uninstrument()`, `chat` calls are still traced. ```python import httpx, ollama from opentelemetry.sdk.trace import SpanProcessor, TracerProvider from opentelemetry.instrumentation.ollama import OllamaInstrumentor class Count(SpanProcessor): n...
The LangChain instrumentation has the same problem: `_uninstrument()` calls `unwrap("langchain_core.callbacks", "BaseCallbackManager.__init__")`, so the callback manager stays wrapped and LangGraph sessions are still traced after `LangchainInstrumentor().uninstrument()` (opentelemetry-instrumentation-langchain 0.62.4, langgraph 1.2.16, langchain-core...
Additional cases with the same root cause: the sync `StreamingWrapper.__iter__` ([L110](https://github.com/traceloop/openllmetry/blob/df4921a40940cdce136c4409380a55e9d4c7a96d/packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/streaming_wrapper.py#L110)) only ends the span on `StopIteration`. If the stream raises while it is being read β the connection drops...
> Hi [@armanunix](https://github.com/armanunix), Iβd be interested in working on this issue if you havenβt started implementing it yet. I can reproduce the streaming tool-call argument loss and work on a...
The same in **opentelemetry-instrumentation-ollama 0.62.4** (ollama 0.6.3): `_wrap` / `_awrap` handle only `except Exception`, so a `chat` / `generate` call interrupted by `KeyboardInterrupt` (or `asyncio.CancelledError` for `AsyncClient`) while waiting for...
The same in **opentelemetry-instrumentation-ollama 0.62.4** (ollama 0.6.3): a failed `chat` / `generate` records no `gen_ai.client.operation.duration` point, while a successful one records one. In `_wrap` / `_awrap` the duration is only...
A related case in the same wrapper: an app that stops reading at Ollama's final `done` record (`for chunk in stream: ... if chunk.done: break`, a common pattern) has the...