-
Notifications
You must be signed in to change notification settings - Fork 296
The specified configuration does not have a telemetry channel. (Parameter 'configuration') #2195
Copy link
Copy link
Closed
Labels
Description
- List of NuGet packages and version that you are using:
- Microsoft.ApplicationInsights.AspNetCore: 2.17.0
- Azure.Storage.Blobs: 12.8.0
- Runtime version: netcoreapp3.1
- Hosting environment: AzureWebApp
Describe the bug
Instrumentation of the interactions with storage accounts through the Azure.Storage.Blobs throws the following exception:
Message:
System.ArgumentException : The specified configuration does not have a telemetry channel. (Parameter 'configuration')
Stack Trace:
TelemetryClient.ctor(TelemetryConfiguration configuration)
DiagnosticsEventHandlerBase.ctor(TelemetryConfiguration configuration)
AzureSdkDiagnosticsEventHandler.ctor(TelemetryConfiguration configuration)
AzureSdkDiagnosticListenerSubscriber.GetEventHandler(String diagnosticListenerName)
DiagnosticSourceListenerBase`1.OnNext(DiagnosticListener value)
AllListenerObservable.OnNewDiagnosticListener(DiagnosticListener diagnosticListener)
DiagnosticListener.ctor(String name)
DiagnosticScopeFactory.ctor(String clientNamespace, String resourceProviderNamespace, Boolean isActivityEnabled)
ClientDiagnostics.ctor(ClientOptions options)
StorageRequestValidationPipelinePolicy.ctor(ClientOptions options)
StorageClientOptions.Build(ClientOptions options, HttpPipelinePolicy authentication, Uri geoRedundantSecondaryStorageUri)
StorageClientOptions.Build(ClientOptions options, Object credentials, Uri geoRedundantSecondaryStorageUri)
BlobClientOptions.Build(Object credentials)
BlobContainerClient.ctor(String connectionString, String blobContainerName, BlobClientOptions options)
BlobContainerClient.ctor(String connectionString, String blobContainerName)
BlobsDownloader.BuildBlobContainerAccessor(IConfiguration configuration, String connectionStringKey, String name) line 96
PublicFilesFixture.ctor(PublicFilesWebServerSetupFixture wss) line 27
To Reproduce
Discovered while migrating some code from the now deprecated "Microsoft.Azure.Storage.Blob" to "Azure.Storage.Blobs".
This has been initially mentioned in Azure/azure-sdk-for-net#19068 and @jsquire kindly recommended there to rather discuss it here.
The call stack shows an automated test, running against Azurite 3.11.0, which tries to read a non existing file from an existing container.
If this call stack and my explanation doesn't help you pinpointing in the span of a few minutes the root of the issue, I'll find the time to create a minimal repro case.
Reactions are currently unavailable