Azure / Azure/azure-functions-dotnet-worker

No spans from blog trigger in isolated worker (host or worker)

Open
#2,802 0 comments 1 reaction 1 assignee Claimed by @RohitRanjanMS View on GitHub
.NET 9 extensions: storage-blobs logging
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

Here's the repro app: https://github.com/lmolkova/testfuncotel

Environment:
- A .NET 9 RC 2 SDK
- Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore at v2.0.0-preview1
- Microsoft.Azure.Functions.Worker.Sdk at v2.0.0-preview1
- Azure Functions Core Tools at v4.0.6280

It has:
- HTTP and blob triggers
- configures otel to collect incoming and outgoing HTTP and function worker sources
- it sends some custom spans from function invocations
- it exports all logs, traces and spans to local aspire dashboard

What I see:

- HTTP trigger works fine: spans and logs are exported as expected
![Image](https://github.com/user-attachments/assets/3c4be2e4-6e68-4875-9226-df7f9c2abe8c)
- Blob trigger does not produce any spans from the worker - even custom ones. It produces a bunch spans from the host, but none of them are related to the specific invocation (or not correlated to it)
- It produces logs, which have trace-id, but there is no corresponding trace
![Image](https://github.com/user-attachments/assets/860aeccb-9d04-4aeb-8779-be445bf4d04b)

Mysteriously, even the custom activity that works perfectly fine in the HTTP trigger becomes `null` inside blob trigger.

It also produces a bunch of host-level storage-polling noise, but I don't see any spans describing the triggered function
![Image](https://github.com/user-attachments/assets/9dc46766-2cb0-47a7-bc6e-e6e64fd518b0)

Expected:

Blob trigger is reported as a span on the host and custom activity is reported from inside the trigger code.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.