Skip to content

Commit e663af5

Browse files
committed
fix imports
1 parent 51cc092 commit e663af5

File tree

6 files changed

+33
-42
lines changed

6 files changed

+33
-42
lines changed

Microsoft.Azure.Cosmos/src/CosmosClientTelemetryOptions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Microsoft.Azure.Cosmos
66
{
7-
using Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry;
8-
97
/// <summary>
108
/// Telemetry Options for Cosmos Client to enable/disable telemetry and distributed tracing along with corresponding threshold values.
119
/// </summary>

Microsoft.Azure.Cosmos/src/Resource/ClientContextCore.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ private async Task<TResult> RunWithDiagnosticsHelperAsync<TResult>(
545545
{
546546
recorder.MarkFailed(ex);
547547

548-
Console.WriteLine(ex.ToString());
549548
throw;
550549
}
551550
}

Microsoft.Azure.Cosmos/src/Telemetry/OpenTelemetry/OpenTelemetryCoreRecorder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace Microsoft.Azure.Cosmos.Telemetry
99
using System.Diagnostics;
1010
using global::Azure.Core;
1111
using Microsoft.Azure.Cosmos.Telemetry.Diagnostics;
12-
using Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry;
1312
using Microsoft.Azure.Documents;
1413

1514
/// <summary>

Microsoft.Azure.Cosmos/src/Telemetry/OpenTelemetry/ShowQueryMode.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
// Copyright (c) Microsoft Corporation. All rights reserved.
33
// ------------------------------------------------------------
44

5-
namespace Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry
5+
namespace Microsoft.Azure.Cosmos
66
{
7-
using System;
8-
using System.Collections.Generic;
9-
using System.Text;
10-
117
/// <summary>
128
/// Defines whether to print query in tracing attributes
139
/// </summary>

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Tracing/EndToEndTraceWriterBaselineTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace Microsoft.Azure.Cosmos.EmulatorTests.Tracing
2020
using Microsoft.Azure.Cosmos.Diagnostics;
2121
using Microsoft.Azure.Cosmos.SDK.EmulatorTests;
2222
using Microsoft.Azure.Cosmos.Services.Management.Tests.BaselineTest;
23-
using Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry;
2423
using Microsoft.Azure.Cosmos.Tests;
2524
using Microsoft.Azure.Cosmos.Tracing;
2625
using Microsoft.VisualStudio.TestTools.UnitTesting;

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetSDKAPI.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3237,17 +3237,17 @@
32373237
],
32383238
"MethodInfo": "Microsoft.Azure.Cosmos.CosmosThresholdOptions get_CosmosThresholdOptions();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
32393239
},
3240-
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode get_ShowQueryMode()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
3240+
"Microsoft.Azure.Cosmos.ShowQueryMode get_ShowQueryMode()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
32413241
"Type": "Method",
32423242
"Attributes": [
32433243
"CompilerGeneratedAttribute"
32443244
],
3245-
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode get_ShowQueryMode();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
3245+
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode get_ShowQueryMode();IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
32463246
},
3247-
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode ShowQueryMode": {
3247+
"Microsoft.Azure.Cosmos.ShowQueryMode ShowQueryMode": {
32483248
"Type": "Property",
32493249
"Attributes": [],
3250-
"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;"
3250+
"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;"
32513251
},
32523252
"Void .ctor()": {
32533253
"Type": "Constructor",
@@ -3275,12 +3275,12 @@
32753275
],
32763276
"MethodInfo": "Void set_DisableSendingMetricsToService(Boolean);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
32773277
},
3278-
"Void set_ShowQueryMode(Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode)[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
3278+
"Void set_ShowQueryMode(Microsoft.Azure.Cosmos.ShowQueryMode)[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": {
32793279
"Type": "Method",
32803280
"Attributes": [
32813281
"CompilerGeneratedAttribute"
32823282
],
3283-
"MethodInfo": "Void set_ShowQueryMode(Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
3283+
"MethodInfo": "Void set_ShowQueryMode(Microsoft.Azure.Cosmos.ShowQueryMode);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
32843284
}
32853285
},
32863286
"NestedTypes": {}
@@ -9732,6 +9732,32 @@
97329732
},
97339733
"NestedTypes": {}
97349734
},
9735+
"Microsoft.Azure.Cosmos.ShowQueryMode;System.Enum;IsAbstract:False;IsSealed:True;IsInterface:False;IsEnum:True;IsClass:False;IsValueType:True;IsNested:False;IsGenericType:False;IsSerializable:True": {
9736+
"Subclasses": {},
9737+
"Members": {
9738+
"Int32 value__": {
9739+
"Type": "Field",
9740+
"Attributes": [],
9741+
"MethodInfo": "Int32 value__;IsInitOnly:False;IsStatic:False;"
9742+
},
9743+
"Microsoft.Azure.Cosmos.ShowQueryMode ALL": {
9744+
"Type": "Field",
9745+
"Attributes": [],
9746+
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode ALL;IsInitOnly:False;IsStatic:True;"
9747+
},
9748+
"Microsoft.Azure.Cosmos.ShowQueryMode NONE": {
9749+
"Type": "Field",
9750+
"Attributes": [],
9751+
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode NONE;IsInitOnly:False;IsStatic:True;"
9752+
},
9753+
"Microsoft.Azure.Cosmos.ShowQueryMode PARAMETERIZED_ONLY": {
9754+
"Type": "Field",
9755+
"Attributes": [],
9756+
"MethodInfo": "Microsoft.Azure.Cosmos.ShowQueryMode PARAMETERIZED_ONLY;IsInitOnly:False;IsStatic:True;"
9757+
}
9758+
},
9759+
"NestedTypes": {}
9760+
},
97359761
"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": {
97369762
"Subclasses": {},
97379763
"Members": {
@@ -10985,32 +11011,6 @@
1098511011
},
1098611012
"NestedTypes": {}
1098711013
},
10988-
"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": {
10989-
"Subclasses": {},
10990-
"Members": {
10991-
"Int32 value__": {
10992-
"Type": "Field",
10993-
"Attributes": [],
10994-
"MethodInfo": "Int32 value__;IsInitOnly:False;IsStatic:False;"
10995-
},
10996-
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode ALL": {
10997-
"Type": "Field",
10998-
"Attributes": [],
10999-
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode ALL;IsInitOnly:False;IsStatic:True;"
11000-
},
11001-
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode NONE": {
11002-
"Type": "Field",
11003-
"Attributes": [],
11004-
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode NONE;IsInitOnly:False;IsStatic:True;"
11005-
},
11006-
"Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode PARAMETERIZED_ONLY": {
11007-
"Type": "Field",
11008-
"Attributes": [],
11009-
"MethodInfo": "Microsoft.Azure.Cosmos.Telemetry.OpenTelemetry.ShowQueryMode PARAMETERIZED_ONLY;IsInitOnly:False;IsStatic:True;"
11010-
}
11011-
},
11012-
"NestedTypes": {}
11013-
},
1101411014
"Microsoft.Azure.Cosmos.ThroughputProperties;System.Object;IsAbstract:False;IsSealed:False;IsInterface:False;IsEnum:False;IsClass:True;IsValueType:False;IsNested:False;IsGenericType:False;IsSerializable:False": {
1101511015
"Subclasses": {},
1101611016
"Members": {

0 commit comments

Comments
 (0)