Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
c48fee4
fix(openai-agents): keep private instructions out of exported output …
nik13 Nov 9, 2026
e387cc6
fix(groq): never export credentials from extra_headers
nik13 Nov 9, 2026
8fb4702
fix(pydantic-ai): preserve run_stream and apply content privacy
nik13 Nov 9, 2026
cdf2518
fix(litellm): keep credentials out of spans and fix stream, usage and…
nik13 Nov 10, 2026
f093de5
fix(autogen): apply content controls to AgentChat spans
nik13 Nov 10, 2026
e34086b
fix(bedrock): instrument converse_stream and fix stream and request-b…
nik13 Nov 10, 2026
5b23978
fix(auto): report provider failures in successful HTTP responses and …
nik13 Nov 10, 2026
30d6000
fix(openai-agents): require privacy-safe instrumentation core
nik13 Nov 10, 2026
050d46c
fix(tests): run framework regressions in the package environment
nik13 Nov 10, 2026
f8fba51
fix(groq): require fi-instrumentation-otel 1.0.0 or later
nik13 Nov 10, 2026
bc061fc
fix(autogen): require fi-instrumentation-otel 1.0.0 or later
nik13 Nov 10, 2026
a1a2749
fix(litellm): require fi-instrumentation-otel 1.0.0 or later
nik13 Nov 10, 2026
4cc91fa
chore(release): release @traceai/auto 0.1.4
nik13 Nov 10, 2026
5b3e919
fix(anthropic): keep one-shot call messages and output tool call IDs
nik13 Nov 10, 2026
fb811b7
fix(smolagents): keep the run span through streaming execution
nik13 Nov 10, 2026
4115216
fix(fi-instrumentation-otel): trace generator consumption, nullable e…
nik13 Nov 10, 2026
61f6a83
fix(fi-semantic-conventions): use canonical resource keys
nik13 Nov 10, 2026
6a8da27
fix(python): require the fi-instrumentation-otel each package's code …
nik13 Nov 10, 2026
2c00ae6
test(bedrock): move regression tests into package CI
nik13 Nov 10, 2026
d7b3b73
fix(minimax): keep tracing requests that carry a system message
nik13 Nov 10, 2026
39c2513
docs(python): note the new fi-instrumentation-otel floors in each pac…
nik13 Nov 10, 2026
3b583c2
test(groq): cover message iterators and stream lifecycle
nik13 Nov 10, 2026
83b50fa
test(openai-agents): cover custom tool span finalization
nik13 Nov 10, 2026
d0989a6
docs(n8n): install from npm now that 0.1.0 is published
nik13 Nov 10, 2026
9d37aec
fix(groq): preserve message iterators and stream lifecycle
nik13 Nov 10, 2026
1092ece
docs(openrouter): show the install command and Future AGI exporter se…
nik13 Nov 10, 2026
b297c54
fix(openai-agents): finalize custom tool spans safely
nik13 Nov 10, 2026
b0cf14e
docs(auto): limit the 0.1.4 provider-failure note to calls captured f…
nik13 Nov 10, 2026
ef6b0e6
fix(bedrock): keep send options, caller-driven streams and tool argum…
nik13 Nov 10, 2026
53279aa
fix(openai): return HTTP 200 error bodies and keep embedding token us…
nik13 Nov 10, 2026
7866be9
fix(dspy): keep multipart model messages working when traced
nik13 Nov 10, 2026
8e4b83f
fix(fi-core): use a full collector endpoint from the environment as g…
nik13 Nov 10, 2026
93a5b27
fix(bedrock): require fi-instrumentation-otel 1.0.0 or later
nik13 Nov 10, 2026
9f2ea73
fix(fi-instrumentation-otel): keep context helpers attached in async …
nik13 Nov 10, 2026
1e31b9e
fix(cohere): capture integer embedding vectors
nik13 Nov 10, 2026
dde843c
fix(langchain): preserve normalized tool calls and result links
nik13 Nov 10, 2026
84690d8
test(pydantic-ai): cover explicit provider routing
nik13 Nov 10, 2026
94fddf1
fix(openrouter): mark completed TypeScript calls OK like the other tr…
nik13 Nov 10, 2026
9599cf8
fix(anthropic): keep TypeScript tracing across re-instrumentation and…
nik13 Nov 10, 2026
ec3f5ad
fix(vertexai): finalize blocked and non-text responses safely
nik13 Nov 10, 2026
62a914a
fix(google-genai): keep streamed function calls and coalesce streamed…
nik13 Nov 10, 2026
e0dd437
fix(vercel): keep embedding token usage in auto mode
nik13 Nov 10, 2026
d1f0979
fix(mistralai): keep tool-call and tool-result ids on legacy SDK spans
nik13 Nov 10, 2026
a34b25c
fix(openai): return HTTP 200 error bodies from embedding calls unchanged
nik13 Nov 10, 2026
2e5d504
fix(cohere): trace async chat streams and typed embedding responses
nik13 Nov 10, 2026
40027de
fix(langchain): keep the full chat input, tool calls and image inputs
nik13 Nov 10, 2026
8fa2317
fix(openai): keep the complete chat input and cached and reasoning to…
nik13 Nov 10, 2026
5217d55
Merge pull request #637 from future-agi/fix/traceai-openai-ts-wave9-o…
nik13 Nov 10, 2026
17bf11c
Merge pull request #625 from future-agi/fix/groq-wave9-on-dev
nik13 Nov 10, 2026
df8d510
Merge pull request #626 from future-agi/fix/openai-agents-wave9-on-dev
nik13 Nov 10, 2026
93c5c40
Merge pull request #628 from future-agi/fix/litellm-wave9-on-dev
nik13 Nov 10, 2026
0525e60
chore(release): release @traceai/openai 0.1.18
nik13 Nov 10, 2026
7a0b872
Merge pull request #629 from future-agi/fix/autogen-wave9-on-dev
nik13 Nov 10, 2026
333cc5b
Merge pull request #632 from future-agi/fix/bedrock-wave9-on-dev
nik13 Nov 10, 2026
3cfa0b4
Merge pull request #634 from future-agi/fix/python-core-floors-on-dev
nik13 Nov 10, 2026
8de923d
Merge pull request #665 from future-agi/release/traceai-openai-0.1.18
nik13 Nov 10, 2026
4eaef50
Merge pull request #631 from future-agi/fix/traceai-auto-wave9-on-dev
nik13 Nov 10, 2026
c1e2748
Merge pull request #635 from future-agi/release/traceai-wave9-npm
nik13 Nov 10, 2026
d8dab7c
Merge pull request #627 from future-agi/fix/pydantic-ai-wave9-on-dev
nik13 Nov 10, 2026
929c166
Merge pull request #633 from future-agi/fix/minimax-wave9-on-dev
nik13 Nov 10, 2026
6385161
Merge pull request #647 from future-agi/fix/fi-instrumentation-async-…
nik13 Nov 10, 2026
ca88871
Merge pull request #646 from future-agi/fix/dspy-multipart-on-dev
nik13 Nov 10, 2026
dd49fd7
Merge pull request #655 from future-agi/fix/vertexai-py-wave9-on-dev
nik13 Nov 10, 2026
5717037
Merge pull request #656 from future-agi/fix/google-genai-py-wave9-on-dev
nik13 Nov 10, 2026
438be45
Merge pull request #659 from future-agi/fix/mistralai-tool-ids-on-dev
nik13 Nov 10, 2026
f67bf6f
Merge pull request #660 from future-agi/fix/cohere-py-wave9-on-dev
nik13 Nov 10, 2026
9255f71
Merge pull request #661 from future-agi/fix/langchain-chat-input-imag…
nik13 Nov 10, 2026
20bf9a6
Merge pull request #662 from future-agi/fix/openai-chat-input-usage-o…
nik13 Nov 10, 2026
658ad7f
docs: quickstarts for four Python integrations run as written
nik13 Nov 10, 2026
4684778
docs(n8n): let npm pick OpenTelemetry versions that fit the n8n insta…
nik13 Nov 10, 2026
75b24df
fix(minimax): keep streamed calls working when chunks carry empty fields
nik13 Nov 10, 2026
b583177
Merge pull request #666 from future-agi/fix/minimax-stream-empty-fiel…
nik13 Nov 10, 2026
2071def
fix(langchaingo): let the example honor FI_BASE_URL
nik13 Nov 10, 2026
a4d8b9d
fix(vitest-evals): name the Future AGI project on exported eval traces
nik13 Nov 10, 2026
1d2bd68
fix(langchain): stop printing a TypeError on every ES module run
nik13 Nov 10, 2026
cb8bfb2
fix(pydantic-ai): record input and output on streamed agent runs
nik13 Nov 10, 2026
e528493
fix(cohere): record binary and ubinary embedding vectors
nik13 Nov 10, 2026
9ea96ec
test(cohere): plain title for the integer embedding tests
nik13 Nov 10, 2026
bf899b1
Merge pull request #641 from future-agi/fix/fi-instrumentation-wave9-…
nik13 Nov 12, 2026
88827f4
Merge pull request #642 from future-agi/fix/anthropic-wave9-on-dev
nik13 Nov 12, 2026
3247071
Merge pull request #643 from future-agi/fix/smolagents-wave9-on-dev
nik13 Nov 12, 2026
b3225e5
Merge pull request #673 from future-agi/fix/pydantic-ai-run-stream-io…
nik13 Nov 12, 2026
c5a5612
Merge pull request #668 from future-agi/docs/python-quickstarts-first…
nik13 Nov 12, 2026
6a7743a
Merge pull request #644 from future-agi/fix/fi-semantic-conventions-w…
nik13 Nov 12, 2026
d64a8ba
Merge pull request #645 from future-agi/fix/fi-core-collector-endpoin…
nik13 Nov 12, 2026
76e49a1
Merge pull request #640 from future-agi/fix/traceai-bedrock-ts-wave9-…
nik13 Nov 12, 2026
4ea611c
Merge pull request #649 from future-agi/fix/traceai-cohere-ts-wave9-o…
nik13 Nov 12, 2026
eebb55c
Merge pull request #650 from future-agi/fix/traceai-langchain-ts-wave…
nik13 Nov 12, 2026
4cfb8a4
Merge pull request #671 from future-agi/fix/langchain-ts-esm-patch-fl…
nik13 Nov 12, 2026
0acd8ab
Merge pull request #651 from future-agi/fix/openrouter-ts-ok-status-o…
nik13 Nov 12, 2026
2485c00
Merge pull request #653 from future-agi/docs/openrouter-ts-setup-on-dev
nik13 Nov 12, 2026
967e154
Merge pull request #652 from future-agi/docs/n8n-npm-install-on-dev
nik13 Nov 12, 2026
894f771
Merge pull request #657 from future-agi/fix/traceai-anthropic-ts-wave…
nik13 Nov 12, 2026
96356b4
Merge pull request #658 from future-agi/fix/vercel-embed-usage-on-dev
nik13 Nov 12, 2026
41902e9
Merge pull request #669 from future-agi/fix/vitest-evals-project-name…
nik13 Nov 12, 2026
97d20a9
Merge pull request #672 from future-agi/fix/cohere-ts-binary-on-649
nik13 Nov 12, 2026
e705713
Merge pull request #670 from future-agi/fix/langchaingo-example-endpoint
nik13 Nov 12, 2026
21552c5
chore(release): release 28 Python packages (fi-instrumentation-otel 1…
nik13 Nov 12, 2026
6f2fd3f
chore(release): release 10 npm packages (fi-core 1.2.4, fi-semantic-c…
nik13 Nov 12, 2026
f648a7b
chore(release): format the n8n changelog section
nik13 Nov 12, 2026
50ad3e7
Merge pull request #694 from future-agi/chore/release-python-packages
nik13 Nov 12, 2026
78582d7
Merge pull request #695 from future-agi/chore/release-npm-packages
nik13 Nov 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,82 +5,82 @@
"python/frameworks/agent-framework": "0.1.0",
"python/frameworks/agentscope": "0.1.0",
"python/frameworks/agno": "0.2.2",
"python/frameworks/anthropic": "0.1.13",
"python/frameworks/autogen": "0.2.1",
"python/frameworks/bedrock": "0.1.11",
"python/frameworks/anthropic": "0.1.14",
"python/frameworks/autogen": "0.2.2",
"python/frameworks/bedrock": "0.1.12",
"python/frameworks/beeai": "0.1.0",
"python/frameworks/cerebras": "0.1.1",
"python/frameworks/cerebras": "0.1.2",
"python/frameworks/chromadb": "0.2.0",
"python/frameworks/claude-agent-sdk": "0.1.1",
"python/frameworks/cohere": "0.1.1",
"python/frameworks/claude-agent-sdk": "0.1.2",
"python/frameworks/cohere": "0.1.2",
"python/frameworks/cognee": "0.1.1",
"python/frameworks/crewai": "0.1.11",
"python/frameworks/deepseek": "0.1.2",
"python/frameworks/deepseek": "0.1.3",
"python/frameworks/discoveryengine": "0.1.1",
"python/frameworks/dspy": "0.1.9",
"python/frameworks/dspy": "0.1.10",
"python/frameworks/elevenlabs-agents": "0.1.0",
"python/frameworks/exa": "0.1.0",
"python/frameworks/firecrawl": "0.1.1",
"python/frameworks/fireworks": "0.1.2",
"python/frameworks/fireworks": "0.1.3",
"python/frameworks/google-adk": "0.1.7",
"python/frameworks/google-genai": "0.1.3",
"python/frameworks/google-genai": "0.1.4",
"python/frameworks/google-genai-live": "0.1.0",
"python/frameworks/groq": "0.1.10",
"python/frameworks/groq": "0.1.11",
"python/frameworks/guardrails": "0.2.2",
"python/frameworks/haystack": "0.1.11",
"python/frameworks/hermes-agent/hermes-plugin/futureagi": "0.1.1",
"python/frameworks/hermes-agent": "0.1.1",
"python/frameworks/huggingface": "0.1.0",
"python/frameworks/instructor": "0.2.1",
"python/frameworks/huggingface": "0.1.1",
"python/frameworks/instructor": "0.2.2",
"python/frameworks/lancedb": "0.1.2",
"python/frameworks/langchain": "0.2.2",
"python/frameworks/litellm": "0.1.11",
"python/frameworks/langchain": "0.2.3",
"python/frameworks/litellm": "0.1.12",
"python/frameworks/livekit": "0.2.1",
"python/frameworks/llama_index": "0.1.11",
"python/frameworks/mcp": "0.1.4",
"python/frameworks/mcp-use": "0.1.1",
"python/frameworks/milvus": "0.1.2",
"python/frameworks/minimax": "0.1.0",
"python/frameworks/mistralai": "0.1.10",
"python/frameworks/minimax": "0.1.1",
"python/frameworks/mistralai": "0.1.11",
"python/frameworks/mongodb-vector": "0.1.2",
"python/frameworks/ollama": "0.1.0",
"python/frameworks/ollama": "0.1.1",
"python/frameworks/openwebui": "0.1.0",
"python/frameworks/openai": "0.1.14",
"python/frameworks/openai-agents": "0.1.7",
"python/frameworks/openai": "0.1.15",
"python/frameworks/openai-agents": "0.1.8",
"python/frameworks/openai-realtime": "0.1.0",
"python/frameworks/parallel": "0.1.1",
"python/frameworks/pgvector": "0.1.1",
"python/frameworks/pinecone": "0.1.1",
"python/frameworks/pipecat": "0.1.2",
"python/frameworks/portkey": "0.1.3",
"python/frameworks/pydantic-ai": "0.1.0",
"python/frameworks/pipecat": "0.1.3",
"python/frameworks/portkey": "0.1.4",
"python/frameworks/pydantic-ai": "0.2.0",
"python/frameworks/qdrant": "0.1.1",
"python/frameworks/redis-vector": "0.1.1",
"python/frameworks/replicate": "0.1.0",
"python/frameworks/semantic-kernel": "0.1.2",
"python/frameworks/smolagents": "0.1.6",
"python/frameworks/smolagents": "0.1.7",
"python/frameworks/strands": "0.1.2",
"python/frameworks/tavily": "0.1.1",
"python/frameworks/temporal": "0.1.0",
"python/frameworks/together": "0.1.1",
"python/frameworks/together": "0.1.2",
"python/frameworks/typesafe": "0.1.0",
"python/frameworks/vertexai": "0.1.11",
"python/frameworks/vertexai": "0.1.12",
"python/frameworks/vllm": "0.1.1",
"python/frameworks/voyage": "0.1.2",
"python/frameworks/weaviate": "0.1.2",
"python/frameworks/xai": "0.1.1",
"python/frameworks/xai": "0.1.2",
"python/traceai": "0.1.0",
"typescript/packages/fi-core": "1.2.3",
"typescript/packages/fi-semantic-conventions": "1.2.0",
"typescript/packages/traceai_anthropic": "0.1.5",
"typescript/packages/traceai_auto": "0.1.3",
"typescript/packages/traceai_bedrock": "0.1.3",
"typescript/packages/fi-core": "1.2.4",
"typescript/packages/fi-semantic-conventions": "1.3.0",
"typescript/packages/traceai_anthropic": "0.1.6",
"typescript/packages/traceai_auto": "0.1.4",
"typescript/packages/traceai_bedrock": "0.1.4",
"typescript/packages/traceai_beeai": "0.1.2",
"typescript/packages/traceai_cerebras": "0.1.2",
"typescript/packages/traceai_chromadb": "0.1.2",
"typescript/packages/traceai_claude_agent_sdk": "0.1.0",
"typescript/packages/traceai_codex_sdk": "0.1.1",
"typescript/packages/traceai_cohere": "0.1.1",
"typescript/packages/traceai_cohere": "0.1.2",
"typescript/packages/traceai_cursor_sdk": "0.1.1",
"typescript/packages/traceai_deepseek": "0.1.2",
"typescript/packages/traceai_fireworks": "0.1.2",
Expand All @@ -93,7 +93,7 @@
"typescript/packages/traceai_huggingface": "0.1.1",
"typescript/packages/traceai_instructor": "0.1.2",
"typescript/packages/traceai_lancedb": "0.1.2",
"typescript/packages/traceai_langchain": "0.1.7",
"typescript/packages/traceai_langchain": "0.1.8",
"typescript/packages/traceai_livekit": "0.1.1",
"typescript/packages/traceai_llamaindex": "0.1.4",
"typescript/packages/traceai_mastra": "0.2.2",
Expand All @@ -102,7 +102,7 @@
"typescript/packages/traceai_mistral": "0.1.1",
"typescript/packages/traceai_mongodb": "0.1.2",
"typescript/packages/traceai_ollama": "0.1.2",
"typescript/packages/traceai_openai": "0.1.17",
"typescript/packages/traceai_openai": "0.1.18",
"typescript/packages/traceai_openai_agents": "0.2.1",
"typescript/packages/traceai_pgvector": "0.1.1",
"typescript/packages/traceai_pi_coding_agent": "0.2.0",
Expand All @@ -113,7 +113,7 @@
"typescript/packages/traceai_redis": "0.1.3",
"typescript/packages/traceai_strands": "0.1.3",
"typescript/packages/traceai_together": "0.1.1",
"typescript/packages/traceai_vercel": "0.1.4",
"typescript/packages/traceai_vercel": "0.1.5",
"typescript/packages/traceai_vertexai": "0.1.1",
"typescript/packages/traceai_vllm": "0.1.3",
"typescript/packages/traceai_voltagent": "0.1.0",
Expand All @@ -127,7 +127,7 @@
"go/lambda": "0.1.1",
"go/openai": "0.1.0",
"csharp/src/FIInstrumentation": "1.0.1",
"python": "1.3.1",
"python": "1.3.2",
"typescript/packages/traceai_elevenlabs": "0.1.1",
"go/bedrock": "0.1.1",
"typescript/packages/traceai_huggingface_transformers": "0.1.0",
Expand All @@ -153,10 +153,10 @@
"typescript/packages/traceai_opencode_plugin": "0.1.0",
"typescript/packages/traceai_pi_plugin": "0.1.0",
"typescript/packages/traceai_vscode_extension": "0.1.0",
"typescript/packages/traceai_openrouter": "0.1.0",
"typescript/packages/traceai_vitest_evals": "0.1.0",
"typescript/packages/traceai_openrouter": "0.1.1",
"typescript/packages/traceai_vitest_evals": "0.1.1",
"python/frameworks/openrouter": "0.1.0",
"go/langchaingo": "0.1.0",
"ruby/roast": "0.1.0",
"typescript/packages/traceai_n8n": "0.1.0"
"typescript/packages/traceai_n8n": "0.1.1"
}
2 changes: 1 addition & 1 deletion go/langchaingo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Until the first `go/langchaingo/v0.1.0` tag is released, use `@dev` instead of `

## Configure tracing

Set `FI_API_KEY`, `FI_SECRET_KEY`, `FI_PROJECT_NAME` and the credential for your chosen model provider. The [example](example/main.go) configures an OpenTelemetry OTLP/HTTP exporter with the full endpoint `https://api.futureagi.com/tracer/v1/traces`, headers `X-Api-Key` and `X-Secret-Key`, no compression, and the `project_name` and `project_type=observe` resource attributes.
Set `FI_API_KEY`, `FI_SECRET_KEY`, `FI_PROJECT_NAME` and the credential for your chosen model provider. The [example](example/main.go) configures an OpenTelemetry OTLP/HTTP exporter that sends to `{FI_BASE_URL}/tracer/v1/traces` (`FI_BASE_URL` is optional, defaults to `https://api.futureagi.com`, and may end with a slash), with headers `X-Api-Key` and `X-Secret-Key`, no compression, and the `project_name` and `project_type=observe` resource attributes. Set `FI_BASE_URL` to send to a self-hosted or local Future AGI instead.

```go
handler := traceailangchaingo.NewHandler(
Expand Down
14 changes: 13 additions & 1 deletion go/langchaingo/example/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// Run with FI_API_KEY, FI_SECRET_KEY, FI_PROJECT_NAME and OPENAI_API_KEY set.
// Spans go to {FI_BASE_URL}/tracer/v1/traces; FI_BASE_URL is optional and
// defaults to https://api.futureagi.com.
package main

import (
"cmp"
"context"
"fmt"
"os"
"strings"

traceailangchaingo "github.com/future-agi/traceAI/go/langchaingo"
"github.com/tmc/langchaingo/llms"
Expand All @@ -15,8 +19,16 @@ import (
sdktrace "go.opentelemetry.io/otel/sdk/trace"
)

const defaultBaseURL = "https://api.futureagi.com"

// tracesEndpoint returns the OTLP/HTTP traces URL under FI_BASE_URL, ignoring
// trailing slashes, or under the hosted Future AGI API when FI_BASE_URL is unset.
func tracesEndpoint() string {
return cmp.Or(strings.TrimRight(os.Getenv("FI_BASE_URL"), "/"), defaultBaseURL) + "/tracer/v1/traces"
}

func run(ctx context.Context) error {
exp, err := otlptracehttp.New(ctx, otlptracehttp.WithEndpointURL("https://api.futureagi.com/tracer/v1/traces"), otlptracehttp.WithHeaders(map[string]string{"X-Api-Key": os.Getenv("FI_API_KEY"), "X-Secret-Key": os.Getenv("FI_SECRET_KEY")}), otlptracehttp.WithCompression(otlptracehttp.NoCompression))
exp, err := otlptracehttp.New(ctx, otlptracehttp.WithEndpointURL(tracesEndpoint()), otlptracehttp.WithHeaders(map[string]string{"X-Api-Key": os.Getenv("FI_API_KEY"), "X-Secret-Key": os.Getenv("FI_SECRET_KEY")}), otlptracehttp.WithCompression(otlptracehttp.NoCompression))
if err != nil {
return err
}
Expand Down
32 changes: 32 additions & 0 deletions go/langchaingo/example/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package main

import (
"os"
"testing"
)

func TestTracesEndpointDefaultsToHostedAPI(t *testing.T) {
t.Setenv("FI_BASE_URL", "")
if got, want := tracesEndpoint(), "https://api.futureagi.com/tracer/v1/traces"; got != want {
t.Errorf("FI_BASE_URL empty: tracesEndpoint() = %q, want %q", got, want)
}
os.Unsetenv("FI_BASE_URL")
if got, want := tracesEndpoint(), "https://api.futureagi.com/tracer/v1/traces"; got != want {
t.Errorf("FI_BASE_URL unset: tracesEndpoint() = %q, want %q", got, want)
}
}

func TestTracesEndpointUsesBaseURL(t *testing.T) {
for _, tc := range []struct{ base, want string }{
{"http://127.0.0.1:8000", "http://127.0.0.1:8000/tracer/v1/traces"},
{"http://127.0.0.1:8000/", "http://127.0.0.1:8000/tracer/v1/traces"},
{"http://127.0.0.1:8000//", "http://127.0.0.1:8000/tracer/v1/traces"},
{"https://observe.example.com/futureagi/", "https://observe.example.com/futureagi/tracer/v1/traces"},
{"/", "https://api.futureagi.com/tracer/v1/traces"},
} {
t.Setenv("FI_BASE_URL", tc.base)
if got := tracesEndpoint(); got != tc.want {
t.Errorf("FI_BASE_URL=%q: tracesEndpoint() = %q, want %q", tc.base, got, tc.want)
}
}
}
8 changes: 8 additions & 0 deletions python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [1.3.2] - pending release

### Fixed
- using_session, using_user and the other context helpers keep the session and user on spans inside async functions and async generators when used as decorators.
- Generator functions traced with tracer.chain, tracer.agent or tracer.tool, sync or async, keep their span open until the generator finishes or is closed, so spans created inside them nest under it and the span's output defaults to the last yielded value.
- Eval tags for custom evaluations with no model set no longer make register fail.
- The get_session_attributes and get_context_attributes helpers set session.id alongside gen_ai.conversation.id.

## [1.3.1] - 2026-11-10
### Fixed
- PII redaction (`pii_redaction` / `FI_PII_REDACTION`) no longer corrupts correlation identifiers (#195):
Expand Down
5 changes: 3 additions & 2 deletions python/fi_instrumentation/fi_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1794,12 +1794,13 @@ def validate_fagi_system_eval_mapping(
def to_dict(self) -> Dict[str, Any]:
"""Convert EvalTag to dictionary format for API responses"""

if isinstance(self.model, str):
# Custom evaluations may use their template's model without an override.
if self.model is None or isinstance(self.model, str):
model_name = self.model
elif isinstance(self.model, ModelChoices):
model_name = self.model.value
else:
raise ValueError(f"Model must be a string or ModelChoices, got {type(self.model)}")
raise ValueError(f"Model must be None, a string or ModelChoices, got {type(self.model)}")

return {
"type": self.type.value,
Expand Down
6 changes: 5 additions & 1 deletion python/fi_instrumentation/instrumentation/_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def get_context_attributes(


def get_session_attributes(*, session_id: str) -> Dict[str, AttributeValue]:
return {GEN_AI_CONVERSATION_ID: session_id}
return {
SESSION_ID: session_id,
GEN_AI_CONVERSATION_ID: session_id,
}


def get_tag_attributes(*, tags: List[str]) -> Dict[str, AttributeValue]:
Expand Down Expand Up @@ -577,6 +580,7 @@ def get_llm_tool_attributes(
OUTPUT_MIME_TYPE = SpanAttributes.OUTPUT_MIME_TYPE
OUTPUT_VALUE = SpanAttributes.OUTPUT_VALUE
RETRIEVAL_DOCUMENTS = SpanAttributes.RETRIEVAL_DOCUMENTS
SESSION_ID = SpanAttributes.SESSION_ID
GEN_AI_CONVERSATION_ID = SpanAttributes.GEN_AI_CONVERSATION_ID
TAG_TAGS = SpanAttributes.TAG_TAGS
GEN_AI_TOOL_DESCRIPTION = SpanAttributes.GEN_AI_TOOL_DESCRIPTION
Expand Down
Loading
Loading