Skip to content

Commit

Permalink
PR feedback - Fix CS8618
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Jun 26, 2024
1 parent 65db532 commit 18018eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ namespace OpenTelemetry.Exporter.Instana.Implementation.Processors;

internal abstract class ActivityProcessorBase : IActivityProcessor
{
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public IActivityProcessor NextProcessor { get; set; }
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public IActivityProcessor? NextProcessor { get; set; }

public virtual async Task ProcessAsync(Activity activity, InstanaSpan instanaSpan)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace OpenTelemetry.Exporter.Instana.Implementation.Processors;

internal interface IActivityProcessor
{
IActivityProcessor NextProcessor { get; set; }
IActivityProcessor? NextProcessor { get; set; }

Task ProcessAsync(System.Diagnostics.Activity activity, InstanaSpan instanaSpan);
}
2 changes: 1 addition & 1 deletion src/OpenTelemetry.Exporter.Instana/InstanaExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public override ExportResult Export(in Batch<Activity> batch)
From from = new From();
if (this.instanaExporterHelper.IsWindows())
{
from = new From() { E = Process.GetCurrentProcess().Id.ToString(CultureInfo.InvariantCulture) };
from = new From { E = Process.GetCurrentProcess().Id.ToString(CultureInfo.InvariantCulture) };
}

string serviceName = this.ExtractServiceName(ref from);
Expand Down

0 comments on commit 18018eb

Please sign in to comment.