• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

icerpc / icerpc-csharp / 20870171951

10 Jan 2026 01:03AM UTC coverage: 83.304% (-0.1%) from 83.399%
20870171951

Pull #4221

github

web-flow
Merge fe4f556d8 into f39e9819d
Pull Request #4221: Use new C#14 extension block syntax

12030 of 14441 relevant lines covered (83.3%)

2957.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/IceRpc.Telemetry/TelemetryPipelineExtensions.cs
1
// Copyright (c) ZeroC, Inc.
2

3
using IceRpc.Telemetry;
4
using System.Diagnostics;
5

6
namespace IceRpc;
7

8
/// <summary>Provides an extension method for <see cref="Pipeline" /> to add the telemetry interceptor.
9
/// </summary>
10
public static class TelemetryPipelineExtensions
11
{
12
    /// <summary>Extension methods for <see cref="Pipeline" />.</summary>
13
    /// <param name="pipeline">The pipeline being configured.</param>
14
    extension(Pipeline pipeline)
15
    {
16
        /// <summary>Adds the <see cref="TelemetryInterceptor" /> to the pipeline.</summary>
17
        /// <param name="activitySource">The <see cref="ActivitySource" /> used to start the request activity.</param>
18
        /// <returns>The pipeline being configured.</returns>
19
        /// <example>
20
        /// The following code adds the telemetry interceptor to the invocation pipeline.
21
        /// <code source="../../docfx/examples/IceRpc.Telemetry.Examples/TelemetryInterceptorExamples.cs"
22
        /// region="UseTelemetry" lang="csharp" />
23
        /// </example>
24
        /// <seealso href="https://github.com/icerpc/icerpc-csharp/tree/main/examples/Telemetry"/>
25
        public Pipeline UseTelemetry(ActivitySource activitySource) =>
26
            pipeline.Use(next => new TelemetryInterceptor(next, activitySource));
×
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc