< Summary

Class:SeungYongShim.Akka.OpenTelemetry.ActivityExtension
Assembly:SeungYongShim.Akka.OpenTelemetry
File(s):/home/runner/work/SeungYongShim.Akka/SeungYongShim.Akka/src/SeungYongShim.Akka.OpenTelemetry/ActivityExtension.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:19
Line coverage:100% (5 of 5)
Covered branches:0
Total branches:0
Tag:81_945672945

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AddTagException(...)0%110100%

File(s)

/home/runner/work/SeungYongShim.Akka/SeungYongShim.Akka/src/SeungYongShim.Akka.OpenTelemetry/ActivityExtension.cs

#LineLine coverage
 1using System;
 2using System.Diagnostics;
 3using Microsoft.Extensions.Logging;
 4using OpenTelemetry.Trace;
 5
 6namespace SeungYongShim.Akka.OpenTelemetry
 7{
 8    public static class ActivityExtension
 9    {
 10        // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventi
 11        public static Activity AddTagException(this Activity activity, Exception ex)
 212        {
 213            activity.RecordException(ex);
 214            activity.SetStatus(Status.Error);
 215            return activity;
 216        }
 17
 18    }
 19}