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

ManuInNZ 20 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.


Answer accepted by question author
Pravallika KV 18,850 Reputation points Microsoft External Staff Moderator
2026-07-11T07:31:47.56+00:00

Hi @ManuInNZ ,

Thank you for sharing the resolution and confirming the root cause.

As per your confirmation, I'm summarizing and posting the answer.

The issue was due to the Azure Container Apps API version. The Dynatrace OTLP HTTP exporter configuration is supported starting with 2026-03-02-preview. With earlier API versions, the HTTP protocol configuration is ignored, preventing the platform agent from relaying telemetry to Dynatrace.

Updating the Container App to use 2026-03-02-preview (or later) resolved the issue, and traces were successfully forwarded to Dynatrace. The documentation is expected to be updated to reflect the minimum supported API version.

Hope this helps!


If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. ManuInNZ 20 Reputation points
    2026-07-18T23:40:39.81+00:00

    The problem was the api minimum version had to be higher. The docs will be updated.

    minimum version should be 2026-03-02-preview otherwise the http gets ignored.

    then the agent will relay to Dynatrace on http.

    Was this answer helpful?


  2. Alex Burlachenko 25,285 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.