Skip to content

Commit

Permalink
chore: remove obsolete message formats (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels authored Nov 15, 2023
1 parent 1a4016c commit 7d40eee
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions src/Arcus.Observability.Telemetry.Core/MessageFormats.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using Arcus.Observability.Telemetry.Core.Logging;

namespace Arcus.Observability.Telemetry.Core
namespace Arcus.Observability.Telemetry.Core
{
/// <summary>
/// Represents the publicly available message formats to track telemetry.
Expand All @@ -13,34 +10,6 @@ public static class MessageFormats
/// </summary>
public const string DependencyFormat = "{@" + ContextProperties.DependencyTracking.DependencyLogEntry + "}";

/// <summary>
/// Gets the message format to log external dependencies without any custom data value (<see cref="ContextProperties.DependencyTracking.DependencyData"/>);
/// compatible with Application Insights 'Dependencies'.
/// </summary>
[Obsolete("Dependencies without data will be logged as '" + nameof(DependencyLogEntry) + "' models instead of this sentence-like format")]
public const string DependencyWithoutDataFormat =
MessagePrefixes.Dependency + " {"
+ ContextProperties.DependencyTracking.DependencyType + "} named {"
+ ContextProperties.DependencyTracking.TargetName + "} in {"
+ ContextProperties.DependencyTracking.Duration + "} at {"
+ ContextProperties.DependencyTracking.StartTime + "} (Successful: {"
+ ContextProperties.DependencyTracking.IsSuccessful + "} - Context: {@"
+ ContextProperties.TelemetryContext + "})";

/// <summary>
/// Gets the message format to log Azure Service Bus dependencies; compatible with Application Insights 'Dependencies'.
/// </summary>
[Obsolete("Dependencies without data will be logged as '" + nameof(DependencyLogEntry) + "' models instead of this sentence-like format")]
public const string ServiceBusDependencyFormat =
MessagePrefixes.Dependency + " {"
+ ContextProperties.DependencyTracking.DependencyType + "} {"
+ ContextProperties.DependencyTracking.ServiceBus.EntityType + "} named {"
+ ContextProperties.DependencyTracking.TargetName + "} in {"
+ ContextProperties.DependencyTracking.Duration + "} at {"
+ ContextProperties.DependencyTracking.StartTime + "} (Successful: {"
+ ContextProperties.DependencyTracking.IsSuccessful + "} - Context: {@"
+ ContextProperties.TelemetryContext + "})";

/// <summary>
/// Gets the message format to log HTTP dependencies; compatible with Application Insights 'Dependencies'.
/// </summary>
Expand Down

0 comments on commit 7d40eee

Please sign in to comment.