Open
Conversation
9 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds functionality to propagate Activity tags from the worker to the host through the trace context. Tags from the worker's invocation activity are captured, filtered to exclude known OpenTelemetry attributes, and sent back to the host via the InvocationResponse.
Changes:
- Added trace_context field to InvocationResponse protobuf message
- Implemented tag extraction from Activity and storage in FunctionContext.Items
- Created filtering logic to exclude known OpenTelemetry attributes from propagated tags
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| protos/azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto | Added trace_context field to InvocationResponse message for tag propagation |
| src/DotNetWorker.Core/Diagnostics/TraceConstants.cs | Added KnownAttributes list and FunctionContextItemsKey constant to support tag filtering |
| src/DotNetWorker.Core/FunctionsApplication.cs | Extracts Activity tags to dictionary and stores in FunctionContext.Items after function execution |
| src/DotNetWorker.Grpc/Handlers/InvocationHandler.cs | Added AddTraceContextTags method to filter and populate trace context in response |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
kshyju
reviewed
Jan 26, 2026
satvu
commented
Jan 27, 2026
satvu
commented
Jan 28, 2026
| ### Microsoft.Azure.Functions.Worker (metapackage) <version> | ||
|
|
||
| - <entry> | ||
| - Update `Microsoft.Azure.Functions.Worker.Grpc` to <version> |
Member
Author
There was a problem hiding this comment.
These changes can't be merged/released until the host changes are out. Putting in placeholders for now for the release notes.
jviau
reviewed
Jan 28, 2026
jviau
reviewed
Jan 28, 2026
liliankasem
approved these changes
Feb 5, 2026
kshyju
reviewed
Feb 10, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…e-worker-protobuf. Tag: v.1.12.0-protofile
…e-worker-protobuf. Tag: v.1.12.0-protofile
cad1c91 to
4f369ff
Compare
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.
Issue describing the changes in this PR
Related to Azure/azure-functions-host#11574 and the PR resolving it.
Depends on Azure/azure-functions-language-worker-protobuf#98.
Pull request checklist
release_notes.md