Having issues with Dynatrace configuration for Otel endpoints of Container Apps Environments

ManuInNZ 0 Reputation points
2026-06-29T04:16:52.63+00:00

Hi there

Following the article https://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-export-dynatrace, we have configured a 'dynatrace' endpoint, and set the variables for a container app with OpenTelemetry enabled (verified locally in Aspire Dashboard).

However no data shod up in the dynatrace services traces.

When using the console of the Container app I am able to force a Dynatrace test span using a local CLI tool but not through the platform agent.

apt-get update && apt-get install -y wget
wget https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_amd64.tar.
tar xpvf otel-cli_0.4.5_linux_amd64.tar.gz
chmod a+ otel-cli
# Set the OTEL Vars 

export OTEL_EXPORTER_OTLP_ENDPOINT="https://<myinstance>.live.dynatrace.com/api/v2/otlp"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Api-Token myvalid.key.09w098tw908tr09t830"
export OTEL_SERVICE_NAME="bash-otel-cli-tester"

./otel-cli exec --name "Container-CLI-Test-Span" echo "Sending trace payload via otel-cli..."

On the console I can see the underlying K8S OTEL config vars and I can see data in Azure monitor but not in Dynatrace.

Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.


1 answer

Sort by: Most helpful
  1. Alex Burlachenko 23,170 Reputation points MVP Volunteer Moderator
    2026-06-29T14:00:47.88+00:00

    hi ManuInNZ & thx for sharing urs issue here at Q&A portal,

    Since otel-cli from inside the container reaches Dynatrace, network and token look ok. That points to the ACA platform OpenTelemetry pipeline/config, not Dynatrace itself. First thing I’d check is whether the Container Apps environment endpoint is actually bound to the app and whether the app has telemetry export enabled at revision level. Seeing Azure Monitor data doesn’t always prove the Dynatrace exporter is active.

    Also check the Dynatrace OTLP endpoint format. For Dynatrace, ACA should use https://<tenant>.live.dynatrace.com/api/v2/otlp with header Authorization=Api-Token <token>

    If u used the endpoint name dynatrace, make sure the app references that exact endpoint name in the OpenTelemetry config. Cute little typo there and ACA silently sends ur traces to nowhere.

    https://learn.microsoft.com/en-us/azure/container-apps/opentelemetry-export-dynatrace

    https://learn.microsoft.com/en-us/azure/container-apps/log-options

    I’d also check whether ur app is producing OTLP traces to stdout/sdk or only Aspire-local traces. Local Aspire dashboard working doesn’t guarantee ACA platform agent receives spans in Azure.

    So deploy a tiny app that emits one basic OTEL span on each request, bind only the Dynatrace endpoint, then hit it and check Dynatrace. If that fails while otel-cli works, open ACA support w/ environment name, endpoint config, app revision, UTC test time, and confirmation that manual OTLP from the container succeeds.

    rgds,

    Alex

    &

    If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal

    and at my blog https://ctrlaltdel.blog/

    Was this answer helpful?


Your answer

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