OTel endpoints for Azure Insights cannot set connection string

Serhat Can 0 Reputation points
2024-07-11T08:45:06.9933333+00:00

I have a container apps that want to enable OTel endpoints to push traces to an Azure Insights. I do changes in portal, enabled logs and traces then selected my Azure Insights resource. I see that traces are being generated in the app but not available on Insights. When I check the App Env in Json view, I see that traces and logs are enabled but destinationConfiguration and connectionString values are null.

I have also tried to set it enabled via "az containerapps" cli command, even I give the connectionString it doesn't set it.

Does anyone has a solution for this?

"openTelemetryConfiguration": {
            "includeSystemTelemetry": false,
            "destinationsConfiguration": null,
            "tracesConfiguration": {
                "destinations": [
                    "appInsights"
                ]
            },
            "logsConfiguration": {
                "destinations": [
                    "appInsights"
                ]
            },
            "metricsConfiguration": null
        },

"appInsightsConfiguration": {
            "connectionString": null
        },
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
444 questions
{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.