< Summary

Information
Class: NexusLabs.Needlr.AgentFramework.Langfuse.LangfuseActivitySource
Assembly: NexusLabs.Needlr.AgentFramework.Langfuse
File(s): /home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Langfuse/LangfuseActivitySource.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 24
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Source()100%11100%

File(s)

/home/runner/work/needlr/needlr/src/NexusLabs.Needlr.AgentFramework.Langfuse/LangfuseActivitySource.cs

#LineLine coverage
 1using System.Diagnostics;
 2
 3namespace NexusLabs.Needlr.AgentFramework.Langfuse;
 4
 5/// <summary>
 6/// Owns the <see cref="ActivitySource"/> used to mint Langfuse scenario spans.
 7/// </summary>
 8/// <remarks>
 9/// An <see cref="ActivitySource"/> is a process-global telemetry primitive matched by name by
 10/// the OpenTelemetry SDK (<c>AddSource</c>) and by <see cref="ActivityListener"/> in tests, so a
 11/// single shared instance is the idiomatic pattern rather than shared mutable state. It is kept
 12/// <see langword="internal"/> and is the only static in this package.
 13/// </remarks>
 14internal static class LangfuseActivitySource
 15{
 16    /// <summary>
 17    /// The name of the <see cref="ActivitySource"/> that emits Langfuse scenario spans. The
 18    /// export bootstrap subscribes to this name so scenario roots are forwarded to Langfuse.
 19    /// </summary>
 20    public const string Name = "NexusLabs.Needlr.AgentFramework.Langfuse";
 21
 22    /// <summary>Gets the shared scenario <see cref="ActivitySource"/>.</summary>
 1523    public static ActivitySource Source { get; } = new(Name);
 24}

Methods/Properties

get_Source()