Skip to content

Commit 588fb4c

Browse files
committed
CA1859
1 parent 6f0f609 commit 588fb4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/OpenTelemetry.AutoInstrumentation.StartupHook/RulesEngine/ApplicationInExcludeListRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private static string GetAppDomainName()
6565
}
6666
}
6767

68-
private static ICollection<string> GetExcludedApplicationNames()
68+
private static List<string> GetExcludedApplicationNames()
6969
{
7070
var excludedProcesses = new List<string>();
7171

src/OpenTelemetry.AutoInstrumentation/Logging/OtelLogging.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private static IOtelLogger CreateLogger(string suffix)
154154
private static ISink CreateSink(string suffix)
155155
{
156156
// Uses ISink? here, sink creation can fail so we specify default fallback at the end.
157-
var sink = _configuredLogSink switch
157+
ISink? sink = _configuredLogSink switch
158158
{
159159
LogSink.NoOp => NoopSink.Instance,
160160
LogSink.Console => new ConsoleSink(suffix),
@@ -168,7 +168,7 @@ private static ISink CreateSink(string suffix)
168168
NoopSink.Instance;
169169
}
170170

171-
private static ISink? CreateFileSink(string suffix)
171+
private static PeriodicFlushToDiskSink? CreateFileSink(string suffix)
172172
{
173173
try
174174
{

0 commit comments

Comments
 (0)