Description
I have two separate function apps 'A' and function app 'B' (both are HttpTrigger apps). I'm calling App 'B' from app 'A' through HttpURLConnection (also tried with Spring webflux i.e webClient) and both the apps A and B are well instrumented using opentelemetry java agent. All the required Otel properties are set in both the function apps and I can see Trace Id and SpanId in Grafana but my query is - Ideally, there should be minimum 3 Span Id's for single Trace Id but I am getting only 2 Span Id's. Span Id for funciton app B is missing. can someone help me to get all Span Id's
Function app A - otel settings
-javaagent:/home/site/wwwroot/opentelemetry-javaagent.jar -Dotel.instrumentation.azure-functions.enabled=true -Dotel.service.name=HttpExamplePeer2 -Dotel.exporter.otlp.endpoint=http://MyIPAddress:MyPORT -Dotel.propagators=tracecontext,baggage -Dotel.logs.exporter=none -Dotel.metrics.exporter=none -Dotel.instrumentation.methods.include=com.function.caller.Function[run] -Dotel.exporter.otlp.traces.protocol=grpc
Function app B - otel settings
-javaagent:/home/site/wwwroot/opentelemetry-javaagent.jar -Dotel.instrumentation.azure-functions.enabled=true -Dotel.service.name=HttpExamplePeer1 -Dotel.exporter.otlp.endpoint=http://MyIPAddress:MyPORT -Dotel.propagators=tracecontext,baggage -Dotel.logs.exporter=none -Dotel.metrics.exporter=none -Dotel.exporter.otlp.traces.protocol=grpc
Way to call function app A using browser is : https://fa-peer-to-peer-2.azurewebsites.net/api/HttpExamplePeer2
Grafana -
