App Insights groups two functions into one Transaction detail
Hi,
I'm looking for a help on how I could get to make app insights work within my setup as I'd expect it to. Consider following setup, where ACCEPT and PROCESS are Azure Functions, ACCEPT sends a message to service bus queue and gets picked by PROCESS function:
Both functions are written in Python and I use opentelemetry and use following code before running a function:
tracer = trace.get_tracer(func.__qualname__)
with tracer.start_as_current_span(span_name)
func()
When I trigger ACCEPT function with HTTP I get following entry in app insights:
When I enter the transaction details page it's quite empty even though there should be some spans as I do set them inside function code:
But when I enter the transaction details through PROCESS function entries there are span from ACCEPT function AND PROCESS function and it gets a bit messy:
I suppose app insights picks this as some kind of one transaction, but I'd like to differentiate both transactions. Could anyone point me in a direction of how to make it work separately?