Skip to content

Python: Update kernel function span #12285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2025
Merged

Conversation

TaoChenOSU
Copy link
Contributor

@TaoChenOSU TaoChenOSU commented May 27, 2025

Motivation and Context

Closing #12262

Description

This PR updates tracing support for function execution across both .NET and Python according to the latest OTel GenAI semantic conventions: https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/#execute-tool-span

Contribution Checklist

@TaoChenOSU TaoChenOSU self-assigned this May 27, 2025
@TaoChenOSU TaoChenOSU requested a review from a team as a code owner May 27, 2025 20:48
@TaoChenOSU TaoChenOSU requested a review from a team as a code owner May 27, 2025 20:48
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel kernel.core labels May 27, 2025
@github-actions github-actions bot changed the title Update kernel function span .Net: Update kernel function span May 27, 2025
@github-actions github-actions bot changed the title .Net: Update kernel function span Python: Update kernel function span May 27, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented May 27, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
kernel.py2285874%148, 159, 163, 313–314, 316, 398, 404–405, 409–410, 463–467, 469–470, 483–492, 494, 496–497, 499–519, 521–526
filters
   kernel_filters_extension.py790100% 
filters/auto_function_invocation
   auto_function_invocation_context.py110100% 
functions
   kernel_function.py1300100% 
utils/telemetry/model_diagnostics
   function_tracer.py120100% 
   gen_ai_attributes.py310100% 
TOTAL27015457483% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3616 18 💤 0 ❌ 0 🔥 1m 55s ⏱️

@moonbox3 moonbox3 added this pull request to the merge queue May 27, 2025
Merged via the queue into main with commit c0605cc May 28, 2025
31 checks passed
@moonbox3 moonbox3 deleted the taochen/update-kernel-function-span branch May 28, 2025 00:07
@github-project-automation github-project-automation bot moved this to Sprint: Done in Semantic Kernel May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel.core .NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel telemetry
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants