Skip to content

Commit 55b7d31

Browse files
committed
Add debug log.
1 parent 957224c commit 55b7d31

File tree

1 file changed

+3
-2
lines changed
  • sdk/@launchdarkly/observability-dotnet/src/LaunchDarkly.Observability

1 file changed

+3
-2
lines changed

sdk/@launchdarkly/observability-dotnet/src/LaunchDarkly.Observability/Observe.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Diagnostics;
55
using System.Diagnostics.Metrics;
66
using System.Threading;
7+
using LaunchDarkly.Observability.Logging;
78
using Microsoft.Extensions.Logging;
89

910
namespace LaunchDarkly.Observability
@@ -60,7 +61,7 @@ private static void WithInstance(Action<Instance> action)
6061
var instance = GetInstance();
6162
if (instance == null)
6263
{
63-
// TODO: Log after PR with logger merged.
64+
DebugLogger.DebugLog("Instance used before Observability Plugin initialized.");
6465
return;
6566
}
6667

@@ -101,7 +102,7 @@ public static void RecordException(Exception exception, IDictionary<string, obje
101102
// Silently return if exception is null
102103
return;
103104
}
104-
105+
105106
WithInstance(instance =>
106107
{
107108
var activity = Activity.Current;

0 commit comments

Comments
 (0)