Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabh1007 committed Sep 11, 2024
1 parent 51cc092 commit e663af5
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 42 deletions.
2 changes: 0 additions & 2 deletions Microsoft.Azure.Cosmos/src/CosmosClientTelemetryOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Microsoft.Azure.Cosmos
{
using Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry;

/// <summary>
/// Telemetry Options for Cosmos Client to enable/disable telemetry and distributed tracing along with corresponding threshold values.
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion Microsoft.Azure.Cosmos/src/Resource/ClientContextCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ private async Task<TResult> RunWithDiagnosticsHelperAsync<TResult>(
{
recorder.MarkFailed(ex);

Console.WriteLine(ex.ToString());
throw;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace Microsoft.Azure.Cosmos.Telemetry
using System.Diagnostics;
using global::Azure.Core;
using Microsoft.Azure.Cosmos.Telemetry.Diagnostics;
using Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry;
using Microsoft.Azure.Documents;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// ------------------------------------------------------------

namespace Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry
namespace Microsoft.Azure.Cosmos
{
using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// Defines whether to print query in tracing attributes
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ namespace Microsoft.Azure.Cosmos.EmulatorTests.Tracing
using Microsoft.Azure.Cosmos.Diagnostics;
using Microsoft.Azure.Cosmos.SDK.EmulatorTests;
using Microsoft.Azure.Cosmos.Services.Management.Tests.BaselineTest;
using Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry;
using Microsoft.Azure.Cosmos.Tests;
using Microsoft.Azure.Cosmos.Tracing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3237,17 +3237,17 @@
],
"MethodInfo": "Microsoft.Azure.Cosmos.CosmosThresholdOptions get_CosmosThresholdOptions();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
},
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode get_ShowQueryMode()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Microsoft.Azure.Cosmos.ShowQueryMode get_ShowQueryMode()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode get_ShowQueryMode();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode get_ShowQueryMode();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
},
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode ShowQueryMode": {
"Microsoft.Azure.Cosmos.ShowQueryMode ShowQueryMode": {
"Type": "Property",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode ShowQueryMode;CanRead:True;CanWrite:True;Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode get_ShowQueryMode();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;Void set_ShowQueryMode(Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode ShowQueryMode;CanRead:True;CanWrite:True;Microsoft.Azure.Cosmos.ShowQueryMode get_ShowQueryMode();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;Void set_ShowQueryMode(Microsoft.Azure.Cosmos.ShowQueryMode);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
},
"Void .ctor()": {
"Type": "Constructor",
Expand Down Expand Up @@ -3275,12 +3275,12 @@
],
"MethodInfo": "Void set_DisableSendingMetricsToService(Boolean);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
},
"Void set_ShowQueryMode(Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode)[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Void set_ShowQueryMode(Microsoft.Azure.Cosmos.ShowQueryMode)[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
"Type": "Method",
"Attributes": [
"CompilerGeneratedAttribute"
],
"MethodInfo": "Void set_ShowQueryMode(Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
"MethodInfo": "Void set_ShowQueryMode(Microsoft.Azure.Cosmos.ShowQueryMode);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
}
},
"NestedTypes": {}
Expand Down Expand Up @@ -9732,6 +9732,32 @@
},
"NestedTypes": {}
},
"Microsoft.Azure.Cosmos.ShowQueryMode;System.Enum;IsAbstract:False;IsSealed:True;IsInterface:False;IsEnum:True;IsClass:False;IsValueType:True;IsNested:False;IsGenericType:False;IsSerializable:True": {
"Subclasses": {},
"Members": {
"Int32 value__": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Int32 value__;IsInitOnly:False;IsStatic:False;"
},
"Microsoft.Azure.Cosmos.ShowQueryMode ALL": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode ALL;IsInitOnly:False;IsStatic:True;"
},
"Microsoft.Azure.Cosmos.ShowQueryMode NONE": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode NONE;IsInitOnly:False;IsStatic:True;"
},
"Microsoft.Azure.Cosmos.ShowQueryMode PARAMETERIZED_ONLY": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode PARAMETERIZED_ONLY;IsInitOnly:False;IsStatic:True;"
}
},
"NestedTypes": {}
},
"Microsoft.Azure.Cosmos.Spatial.BoundingBox;System.Object;IsAbstract:False;IsSealed:True;IsInterface:False;IsEnum:False;IsClass:True;IsValueType:False;IsNested:False;IsGenericType:False;IsSerializable:False": {
"Subclasses": {},
"Members": {
Expand Down Expand Up @@ -10985,32 +11011,6 @@
},
"NestedTypes": {}
},
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode;System.Enum;IsAbstract:False;IsSealed:True;IsInterface:False;IsEnum:True;IsClass:False;IsValueType:True;IsNested:False;IsGenericType:False;IsSerializable:True": {
"Subclasses": {},
"Members": {
"Int32 value__": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Int32 value__;IsInitOnly:False;IsStatic:False;"
},
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode ALL": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode ALL;IsInitOnly:False;IsStatic:True;"
},
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode NONE": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode NONE;IsInitOnly:False;IsStatic:True;"
},
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode PARAMETERIZED_ONLY": {
"Type": "Field",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode PARAMETERIZED_ONLY;IsInitOnly:False;IsStatic:True;"
}
},
"NestedTypes": {}
},
"Microsoft.Azure.Cosmos.ThroughputProperties;System.Object;IsAbstract:False;IsSealed:False;IsInterface:False;IsEnum:False;IsClass:True;IsValueType:False;IsNested:False;IsGenericType:False;IsSerializable:False": {
"Subclasses": {},
"Members": {
Expand Down

0 comments on commit e663af5

Please sign in to comment.