-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83dd4b5
commit bd5c3f7
Showing
22 changed files
with
354 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
Microsoft.Azure.Cosmos/src/CosmosClientTelemetryOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
//------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
//------------------------------------------------------------ | ||
|
||
namespace Microsoft.Azure.Cosmos | ||
{ | ||
/// <summary> | ||
/// Telemetry Options for Cosmos Client | ||
/// </summary> | ||
public class CosmosClientTelemetryOptions | ||
{ | ||
/// <summary> | ||
/// Enable sending telemetry to service, <see cref="CosmosThresholdOptions"/> is not applicable to this as of now | ||
/// </summary> | ||
public bool EnableSendingMetricsToService { get; set; } = false; | ||
|
||
/// <summary> | ||
/// Gets or sets the flag to generate operation level <see cref="System.Diagnostics.Activity"/> for methods calls using the Source Name "Azure.Cosmos.Operation". | ||
/// </summary> | ||
/// <value> | ||
/// The default value is true (for preview package). | ||
/// </value> | ||
/// <remarks>This flag is there to disable it from source. Please Refer https://opentelemetry.io/docs/instrumentation/net/exporters/ to know more about open telemetry exporters</remarks> | ||
#if PREVIEW | ||
public | ||
#else | ||
internal | ||
#endif | ||
bool DisableDistributedTracing { get; set; } = | ||
#if PREVIEW | ||
false; | ||
#else | ||
true; | ||
#endif | ||
|
||
/// <summary> | ||
/// Threshold values for telemetry | ||
/// </summary> | ||
#if PREVIEW | ||
public | ||
#else | ||
internal | ||
#endif | ||
CosmosThresholdOptions CosmosThresholdOptions { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
//------------------------------------------------------------ | ||
|
||
namespace Microsoft.Azure.Cosmos | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// Threshold options for telemetry | ||
/// </summary> | ||
#if PREVIEW | ||
public | ||
#else | ||
internal | ||
#endif | ||
class CosmosThresholdOptions | ||
{ | ||
/// <summary> | ||
/// Latency Threshold for non point operations | ||
/// </summary> | ||
public TimeSpan NonPointOperationLatencyThreshold { get; set; } = TimeSpan.FromMilliseconds(500); | ||
|
||
/// <summary> | ||
/// Latency Threshold for point operations | ||
/// </summary> | ||
public TimeSpan PointOperationLatencyThreshold { get; set; } = TimeSpan.FromMilliseconds(100); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
Microsoft.Azure.Cosmos/src/Telemetry/OpenTelemetry/DistributedTracingOptions.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.