Skip to content

Azure Function App to Function App calling + Instrumentation #14167

Open
@goodluckajay

Description

@goodluckajay

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 -

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions