About 20,600,000 results
Open links in new tab
  1. ActivitySource Class (System.Diagnostics) | Microsoft Learn

    Provides APIs to create and start Activity objects and to register ActivityListener objects to listen to the Activity events.

  2. Best practices | OpenTelemetry

    Aug 14, 2025 · ActivitySource is fairly expensive and meant to be reused throughout the application. For most applications, it can be modeled as static readonly field or singleton via dependency injection.

  3. Adding Custom Activities & Context to Your .NET Traces

    Learn how to use .NET, ActivitySource and OpenTelemetry for advanced observability and better traces in Application Insights.

  4. Better Request Tracing with User Context in ASP.NET Core ... - Medium

    Apr 13, 2025 · In this article, I’ll walk you through how to enhance request tracing in ASP.NET Core by adding user context using Activity, ActivitySource, and OpenTelemetry.

  5. Building End-to-End Diagnostics: ActivitySource and OpenTelemetry

    Dec 8, 2020 · Instead of a DiagnosticListener, we'll want to use an ActivitySource, and for this part, I'll follow the guidance on this API from OpenTelemetry. We create an ActivitySource that we'll share for …

  6. runtime/src/libraries/System.Diagnostics.DiagnosticSource/src/System ...

    /// Initialize a new instance of the ActivitySource object using the <see cref="ActivitySourceOptions" />. // Sorting the tags to make sure the tags are always in the same order. // Sorting can help in comparing …

  7. What the Hell is Activity Anyway? - Honeycomb

    Jun 9, 2022 · It provides a proxy that allows you to useTracerandSpanin your code, while under the hood it’s creating ActivitySource and Activity instances, allowing you to use consistent terminology …

  8. Distributed Tracing in .NET with OpenTelemetry - Site24x7

    You now know how to set up the OpenTelemetry SDK and define and collect traces with custom ActivitySource in the Instrumentation class. You also explored span creation and propagation.

  9. Add distributed tracing instrumentation - .NET | Microsoft Learn

    ActivitySource provides APIs to create and start Activity objects.

  10. Create custom traces and metrics - OpenTelemetry

    Mar 21, 2025 · To create your custom traces manually, follow these steps: Create an Activity. Optionally, set tags: Register your ActivitySource in OpenTelemetry.AutoInstrumentation by setting the …