Skip to content

Commit

Permalink
Fix IDE0066
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Oct 29, 2024
1 parent 9190ea4 commit 5b16baa
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,13 @@ public override async Task ProcessAsync(Activity activity, InstanaSpan instanaSp

private static SpanKind GetSpanKind(ActivityKind activityKind)
{
switch (activityKind)
return activityKind switch
{
case ActivityKind.Consumer:
case ActivityKind.Server:
return SpanKind.ENTRY;
case ActivityKind.Client:
case ActivityKind.Producer:
return SpanKind.EXIT;
case ActivityKind.Internal:
return SpanKind.INTERMEDIATE;
default:
return SpanKind.NOT_SET;
}
ActivityKind.Consumer or ActivityKind.Server => SpanKind.ENTRY,
ActivityKind.Client or ActivityKind.Producer => SpanKind.EXIT,
ActivityKind.Internal => SpanKind.INTERMEDIATE,
_ => SpanKind.NOT_SET,
};
}

private static long GetLongFromHex(string hexValue)
Expand Down

0 comments on commit 5b16baa

Please sign in to comment.