Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

#nullable enable

using System.Threading;
using Datadog.Trace.Logging;

#if NETFRAMEWORK

namespace Datadog.Trace.PlatformHelpers;
Expand All @@ -17,9 +14,6 @@ namespace Datadog.Trace.PlatformHelpers;
/// </summary>
internal sealed class ContainerMetadata
{
private static readonly IDatadogLogger Log = DatadogLogging.GetLoggerFor(typeof(ContainerMetadata));
private static bool _warnedOnSet; // to log only once

public static readonly ContainerMetadata Instance = new();

private ContainerMetadata()
Expand All @@ -36,14 +30,7 @@ public ContainerMetadata(string containerId, string entityId)
public string? ContainerTagsHash
{
get => null;
set
{
if (!_warnedOnSet)
{
_warnedOnSet = true;
Log.Error("The code is trying to set the value '{Value}' to {Prop}, but this has no effect in .NET Framework.", value, nameof(ContainerTagsHash));
}
}
set { }
}

/// <summary>
Expand Down
Loading