Skip to content

Commit

Permalink
Remove vendor specific instrumention from main repo. (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Jun 17, 2020
1 parent ea70fec commit 10f870e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 115 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public static OpenTelemetryBuilder AddDependencyInstrumentation(this OpenTelemet

builder.AddHttpClientDependencyInstrumentation();
builder.AddSqlClientDependencyInstrumentation();
builder.AddAzureClientsDependencyInstrumentation();
#if NETFRAMEWORK
builder.AddHttpWebRequestDependencyInstrumentation();
#endif
Expand All @@ -65,7 +64,6 @@ public static OpenTelemetryBuilder AddDependencyInstrumentation(

builder.AddHttpClientDependencyInstrumentation(configureHttpClientInstrumentationOptions);
builder.AddSqlClientDependencyInstrumentation(configureSqlClientInstrumentationOptions);
builder.AddAzureClientsDependencyInstrumentation();
#if NETFRAMEWORK
builder.AddHttpWebRequestDependencyInstrumentation();
#endif
Expand Down Expand Up @@ -139,24 +137,6 @@ public static OpenTelemetryBuilder AddSqlClientDependencyInstrumentation(
return builder;
}

/// <summary>
/// Enables instrumentation for Azure clients.
/// </summary>
/// <param name="builder"><see cref="OpenTelemetryBuilder"/> being configured.</param>
/// <returns>The instance of <see cref="OpenTelemetryBuilder"/> to chain the calls.</returns>
public static OpenTelemetryBuilder AddAzureClientsDependencyInstrumentation(
this OpenTelemetryBuilder builder)
{
if (builder == null)
{
throw new ArgumentNullException(nameof(builder));
}

builder.AddActivitySource(AzureSdkDiagnosticListener.ActivitySourceName);
builder.AddInstrumentation((activitySource) => new AzureClientsInstrumentation());
return builder;
}

#if NETFRAMEWORK
/// <summary>
/// Enables the outgoing requests automatic data collection for .NET Framework HttpWebRequest activity source.
Expand Down

0 comments on commit 10f870e

Please sign in to comment.