-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP [AzureMonitor] update vendored OTel libraries #48608
base: main
Are you sure you want to change the base?
Conversation
…e_otel1.11_vendored
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#if NETSTANDARD2_0 // HACK; FIX FOR AMBIGUITY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hack to fix compile
@@ -174,7 +174,7 @@ public void SqlClientCallsAreCollectedSuccessfully( | |||
serviceCollection.Configure<SqlClientTraceInstrumentationOptions>(options => | |||
{ | |||
options.SetDbStatementForText = captureTextCommandContent; | |||
options.SetDbStatementForStoredProcedure = captureStoredProcedureCommandName; | |||
//options.SetDbStatementForStoredProcedure = captureStoredProcedureCommandName; // TODO: THIS WAS REMOVED: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2284 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: need to clean up
@@ -99,7 +99,7 @@ public void VerifySqlClientDependency( | |||
.AddSqlClientInstrumentation(options => | |||
{ | |||
options.SetDbStatementForText = true; | |||
options.SetDbStatementForStoredProcedure = true; | |||
//options.SetDbStatementForStoredProcedure = true; // TODO: THIS WAS REMOVED: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2284 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: need to clean up
@@ -170,7 +170,7 @@ public void VerifySqlClientDependencyWithException( | |||
.AddSqlClientInstrumentation(options => | |||
{ | |||
options.SetDbStatementForText = true; | |||
options.SetDbStatementForStoredProcedure = true; | |||
//options.SetDbStatementForStoredProcedure = true; // TODO: THIS WAS REMOVED: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2284 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: need to clean up
/// </summary> | ||
/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> | ||
/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> | ||
public static IConfigurationBuilder AddEnvironmentVariablesVENDORED(this IConfigurationBuilder configurationBuilder) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HACK renamed to fix compile
Follow up to #48574
This PR updates the vendored OTel libraries.
Steps followed to Sync Vendored code
OpenTelemetry.Instrumentation.SqlClient
2a. Clone the OpenTelemetry.NET Repository
Azure.Monitor.OpenTelemetry.AspNetCore
'sVendoring
directory:OpenTelemetry.Instrumentation.SqlClient
Shared
OpenTelemetry.ResourceDetectors.Azure
3a. Clone the OpenTelemetry.NET Contrib Repository
Azure.Monitor.OpenTelemetry.AspNetCore
'sVendoring
directory:OpenTelemetry.ResourceDetectors.Azure
Shared
#nullable enable
toOpenTelemetry.ResourceDetoctors.Azure
files. OurAzure.Monitor.OpenTelemetry.AspNetCore
project does not yet support nullables.#pragma warning disable
AZC0102
andAZC0104
toAzure.VmMetaDataRequestor.cs
. These are code standards that only exist in this Azure SDK reop.