Skip to content

Commit

Permalink
remove sqlclientinstrumentation from previous instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas committed Jun 4, 2020
1 parent c759d8a commit 6df93de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void ConfigureServices(IServiceCollection services)
var tracer = tracerFactory.GetTracer("ServerApp", "semver:1.0.0");
var dependenciesInstrumentation = new DependenciesInstrumentation(tracerFactory);
var aspNetCoreInstrumentation = new AspNetCoreInstrumentation(tracer);
var aspNetCoreInstrumentation = new AspNetCoreInstrumentation();
return tracerFactory;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ public DependenciesInstrumentation(TracerFactoryBase tracerFactory, HttpClientIn

var azureClientsListener = new AzureClientsInstrumentation(tracerFactory.GetTracer(nameof(AzureClientsInstrumentation), "semver:" + assemblyVersion));
var azurePipelineListener = new AzurePipelineInstrumentation(tracerFactory.GetTracer(nameof(AzurePipelineInstrumentation), "semver:" + assemblyVersion));
var sqlClientListener = new SqlClientInstrumentation(tracerFactory.GetTracer(nameof(SqlClientInstrumentation), "semver:" + assemblyVersion), sqlOptions ?? new SqlClientInstrumentationOptions());

this.instrumentations.Add(azureClientsListener);
this.instrumentations.Add(azurePipelineListener);
this.instrumentations.Add(sqlClientListener);
}

/// <inheritdoc />
Expand Down

0 comments on commit 6df93de

Please sign in to comment.