Skip to content

Commit

Permalink
Rename CosmosDB EventSource following SDK changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Jan 11, 2023
1 parent b9c2b51 commit 5b62194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ private class ApplicationInsightsLink
class CosmosDbEventSource : EventSource
{
private CosmosDbEventSource()
: base("Azure.Cosmos_foo")
: base("Azure-Cosmos-Operation-Request-Diagnostics")
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal sealed class AzureSdkDiagnosticListenerSubscriber : DiagnosticSourceLis
public AzureSdkDiagnosticListenerSubscriber(TelemetryConfiguration configuration) : base(configuration)
{
// listen to Cosmos EventSource only - other logs can be sent using ILogger
this.logsListener = new AzureSdkEventListener(this.Client, EventLevel.Informational, "Azure.Cosmos");
this.logsListener = new AzureSdkEventListener(this.Client, EventLevel.Informational, "Azure-Cosmos-Operation-Request-Diagnostics");
this.Client.Context.GetInternalContext().SdkVersion = SdkVersionUtils.GetSdkVersion("rdd" + RddSource.DiagnosticSourceListenerAzure + ":");
}

Expand Down

0 comments on commit 5b62194

Please sign in to comment.