App Insights groups two functions into one Transaction detail

Kozakowski Jacek 0 Reputation points
2024-07-15T16:13:17.0333333+00:00

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:

processing_schema

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:

accept_performance_page

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:

accept_details

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:

process_details

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?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,315 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.