Repository navigation
chore: merge main into ui-rework after the 0.5.800 release (#689) - #692
Merged
Merged
Conversation
Auto-tracing built its OTLP exporter from OTEL_EXPORTER_OTLP_ENDPOINT only, so the protocol stayed gRPC and OTEL_EXPORTER_OTLP_PROTOCOL, which the tracing guides already documented, was ignored. Tools that take OTLP over HTTP only (Langfuse, Opik, MLflow) could not receive Flock's traces. otlp_from_env() resolves the standard variables: the traces or general protocol (grpc by default, http/protobuf; http/json falls back with a warning), the traces endpoint as given, the base endpoint with /v1/traces over HTTP, and empty values as unset. The exporters read their headers from OTEL_EXPORTER_OTLP_(TRACES_)HEADERS themselves.
fix: export OTLP over HTTP when the OTel variables ask for it (#679)
) Observability tools recognise a model call by its gen_ai.* attributes; Flock's run totals (flock.usage.*, #571) sit in a namespace of their own, so Langfuse and Opik showed a Flock run without a single model call. GenAISpans, a DSPy callback, opens an LM.chat span around every LM call of the DSPy engine, under the engine's span, with the model, provider, tokens (from the LM's history entry for that call, streamed calls included), request parameters, response ID and finish reasons, and the agent as gen_ai.agent.name. Message content only with OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true, capped. The span is named LM.chat, not "chat {model}", because the trace viewer and the DuckDB exporter split span names at the first dot. The trace viewer's span details fit their key column to the longest key (up to 40 %) instead of 120 px, so long keys no longer run into their values. Version 0.5.803, frontend 0.1.37; also fixes "declrative" in the package description.
feat: a span per model call in the OpenTelemetry GenAI conventions (#680)
Spans that know their run's correlation ID carry it also as session.id and gen_ai.conversation.id, the attributes Langfuse groups sessions by and Opik threads. A traced call that learns the correlation only from its result (Flock.publish creates it) takes it from the artifacts it returns when they share one. Model-call spans (LM.chat, #680) carry their agent run's correlation, so a session adds up the run's tokens. Version 0.5.804.
feat: a run's traces group into one session or thread (#681)
docs: a guide for tracing backends, comparisons without claims about other tools (#682)
litellm 1.100.4 (GHSA-7hp6-4w63-5g45, LiteLLM proxy only) and dnspython 2.9.1 in the lockfile (GHSA-45c3-73f7-pv4m). litellm 1.100 adds boto3 as a base dependency.
fix: close the litellm and dnspython Dependabot alerts on main (#689)
chore: bump version to 0.5.800
Member
Author
Codex review, round 1 (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #689: merges
mainintoui-reworkafter the 0.5.800 release, so the dependency fixes of #690 and the tracing work reachui-reworkwithout cherry-picks (and #623 gets no duplicate commits).What comes from
mainLM.chatspan per model call in the OpenTelemetry GenAI conventions, and the trace viewer's key column (TraceModuleJaeger.tsx).session.idandgen_ai.conversation.idfrom the bound context.ui-rework's own version).Conflicts and how they are resolved
pyproject.toml,uv.lock,package.json,package-lock.json):ui-rework's versions with a patch bump for what comes in, backend 0.5.821 → 0.5.822 and frontend 0.2.20 → 0.2.21.pyproject.tomltakesmain's corrected description ("declarative").docs/about/changelog.md: both sides' entries kept,ui-rework's first, under New Features and under Fixes; the security entry of fix: close the litellm and dnspython Dependabot alerts on main (#689) #690 merged without a conflict.Checks
uv lock --checkpasses;npm install --package-lock-onlyleaves the mergedpackage-lock.jsonunchanged.uv sync --dev --all-groups --all-extras):pytest3386 passed, 78 skipped.npm ci):npm run type-checkclean,npm test791 passed and 3 skipped,npm run buildpasses.