azure-webjobs-sdk
azure-webjobs-sdk copied to clipboard
No dependency telemetry from webjob's IHostedService
A webjob hosts both a TimerTrigger and an implementation of IHostedService. Traces are collected when produced both from the triggered function and from the hosted service. However, dependency telemetry seems to be collected only from the triggered function.
Repro steps
Run the demo app attached. It attempts to read an entity off of an nonexistent table. I expect to see two failed dependencies in AI, but I get only one.
Expected behavior
(http://127.0.0.1:10002/devstoreaccount1/TimerTrigger(PartitionKey='Foo.PartitionKey',RowKey='Foo.RowKey') (http://127.0.0.1:10002/devstoreaccount1/HostedService(PartitionKey='HostedService.PartitionKey',RowKey='HostedService.RowKey')
Actual behavior
(http://127.0.0.1:10002/devstoreaccount1/TimerTrigger(PartitionKey='Foo.PartitionKey',RowKey='Foo.RowKey')
Known workarounds
I am not aware of any.
Related information
@fabiocav Have you by any chance missed this ticket?
@jviau Is there anyone responding to tickets? I have selected you as you seem to be active. Maybe you could pass this ticket to a relevant person?