Skip to content

refactor(genai-util): pass sampling attributes at span creation for rest of invocation types#4553

Merged
lzchen merged 2 commits intoopen-telemetry:mainfrom
lzchen:genai
May 8, 2026
Merged

refactor(genai-util): pass sampling attributes at span creation for rest of invocation types#4553
lzchen merged 2 commits intoopen-telemetry:mainfrom
lzchen:genai

Conversation

@lzchen
Copy link
Copy Markdown
Contributor

@lzchen lzchen commented May 7, 2026

Continuing of #4538

Extend the pattern from InferenceInvocation to AgentInvocation, WorkflowInvocation, EmbeddingInvocation, and ToolInvocation so that all invocation types pass base attributes to start_span() for head-based sampling decisions.

@lzchen lzchen requested a review from a team as a code owner May 7, 2026 18:32
@github-actions github-actions Bot added the gen-ai Related to generative AI label May 7, 2026
…ll invocation types

Extend the pattern from InferenceInvocation to AgentInvocation,
WorkflowInvocation, EmbeddingInvocation, and ToolInvocation so that
all invocation types pass base attributes to start_span() for
head-based sampling decisions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Assisted-by: Claude Opus 4.6
@lzchen lzchen enabled auto-merge (squash) May 8, 2026 19:19
@lzchen lzchen merged commit 61c1f53 into open-telemetry:main May 8, 2026
753 checks passed
@lzchen lzchen deleted the genai branch May 8, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gen-ai Related to generative AI

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants