Skip to content

Commit 7222cfe

Browse files
committed
Small adaptations
1 parent d172e7e commit 7222cfe

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

tracer/src/Datadog.Trace.Tools.Runner/ProcessConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal static class ProcessConfiguration
5454

5555
if (logDirectory == null)
5656
{
57-
// LogPath is deprecated but still supported. For now, we bypass the WithKeys analyzer, but later we want to pull deprecations differently as part of centralized file
57+
// ProfilerLogPath is deprecated but still supported. For now, we bypass the WithKeys analyzer, but later we want to pull deprecations differently as part of centralized file
5858
#pragma warning disable DD0008, 618
5959
var nativeLogFile = config.WithKeys(ConfigurationKeys.TraceLogPath).AsString();
6060
#pragma warning restore DD0008, 618

tracer/src/Datadog.Trace.Tools.dd_dotnet/Datadog.Trace.Tools.dd_dotnet.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@
5151
from a source generator as opposed to something that is coming from some other tool. -->
5252
<Compile Remove="$(GeneratedFolder)/*/**/*.cs" />
5353
<None Include="$(GeneratedFolder)/*/**/*.cs" />
54+
<Compile Update="Configuration\ConfigurationKeys.*.cs" DependentUpon="ConfigurationKeys.cs" />
5455
</ItemGroup>
5556

5657
<ItemGroup>
5758
<Compile Include="..\Datadog.Trace\TracerConstants.cs" Link="TracerConstants.cs" />
5859
<Compile Include="..\Datadog.Trace\Agent\TracesTransportType.cs" Link="TracesTransportType.cs" />
59-
<Compile Include="..\Datadog.Trace\Generated\net6.0\**\ConfigurationKeys*.g.cs" Link="Configuration\%(RecursiveDir)%(Filename)%(Extension)" />
60+
<Compile Include="..\Datadog.Trace\Configuration\ConfigurationKeys.cs" Link="ConfigurationKeys.cs" />
61+
<Compile Include="..\Datadog.Trace\Configuration\ConfigurationKeys.Exporter.cs" Link="ConfigurationKeys.Exporter.cs" />
6062
<Compile Include="..\Datadog.Trace\Configuration\DeprecationMessages.cs" Link="DeprecationMessages.cs" />
6163
<Compile Include="..\Datadog.Trace\Configuration\ExporterSettings.Shared.cs" Link="ExporterSettings.Shared.cs" />
6264
</ItemGroup>

tracer/src/Datadog.Trace/Configuration/DeprecationMessages.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@
33
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
44
// </copyright>
55

6-
using System;
7-
86
namespace Datadog.Trace.Configuration
97
{
108
internal static class DeprecationMessages
119
{
1210
public const string AppAnalytics = "App Analytics has been replaced by Tracing without Limits. For more information see https://docs.datadoghq.com/tracing/legacy_app_analytics/";
13-
public const string ProfilerLogPathObsoleteMessage = "DD_TRACE_LOG_PATH is deprecated. Use DD_TRACE_LOG_DIRECTORY instead";
14-
15-
[Obsolete(ProfilerLogPathObsoleteMessage)]
16-
public const string LogPath = "DD_TRACE_LOG_PATH";
11+
public const string LogPath = "DD_TRACE_LOG_PATH is deprecated. Use DD_TRACE_LOG_DIRECTORY instead";
1712
}
1813
}

0 commit comments

Comments
 (0)