From 9302466041b6a232b63e4f3e7edc03b1f0442766 Mon Sep 17 00:00:00 2001 From: Sam Spencer <54915162+samsp-msft@users.noreply.github.com> Date: Wed, 2 Apr 2025 14:02:46 -0700 Subject: [PATCH] Changed the name of the ActivitySource and Metric to clarify that the semantic conventions have not been ratified yet. (#194) * Changed the name of the ActivitySource and Metric to clarify that the semantic conventions have not been ratified yet. * Update src/ModelContextProtocol/Diagnostics.cs --------- Co-authored-by: Sam Spencer Co-authored-by: Stephen Toub --- src/ModelContextProtocol/Diagnostics.cs | 4 ++-- tests/ModelContextProtocol.Tests/DiagnosticTests.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ModelContextProtocol/Diagnostics.cs b/src/ModelContextProtocol/Diagnostics.cs index a85aa06..c884522 100644 --- a/src/ModelContextProtocol/Diagnostics.cs +++ b/src/ModelContextProtocol/Diagnostics.cs @@ -5,7 +5,7 @@ namespace ModelContextProtocol; internal static class Diagnostics { - internal static ActivitySource ActivitySource { get; } = new("ModelContextProtocol"); + internal static ActivitySource ActivitySource { get; } = new("Experimental.ModelContextProtocol"); /// /// Follows boundaries from http.server.request.duration/http.client.request.duration @@ -24,6 +24,6 @@ internal static class Diagnostics HistogramBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300], }; - internal static Meter Meter { get; } = new("ModelContextProtocol"); + internal static Meter Meter { get; } = new("Experimental.ModelContextProtocol"); } diff --git a/tests/ModelContextProtocol.Tests/DiagnosticTests.cs b/tests/ModelContextProtocol.Tests/DiagnosticTests.cs index 24c5430..583ae27 100644 --- a/tests/ModelContextProtocol.Tests/DiagnosticTests.cs +++ b/tests/ModelContextProtocol.Tests/DiagnosticTests.cs @@ -17,7 +17,7 @@ public class DiagnosticTests var activities = new List(); using (var tracerProvider = OpenTelemetry.Sdk.CreateTracerProviderBuilder() - .AddSource("ModelContextProtocol") + .AddSource("Experimental.ModelContextProtocol") .AddInMemoryExporter(activities) .Build()) {