Skip to content

Commit 9302466

Browse files
samsp-msftSam Spencerstephentoub
authored
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 <[email protected]> Co-authored-by: Stephen Toub <[email protected]>
1 parent 9b4db35 commit 9302466

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ModelContextProtocol/Diagnostics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace ModelContextProtocol;
55

66
internal static class Diagnostics
77
{
8-
internal static ActivitySource ActivitySource { get; } = new("ModelContextProtocol");
8+
internal static ActivitySource ActivitySource { get; } = new("Experimental.ModelContextProtocol");
99

1010
/// <summary>
1111
/// Follows boundaries from http.server.request.duration/http.client.request.duration
@@ -24,6 +24,6 @@ internal static class Diagnostics
2424
HistogramBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300],
2525
};
2626

27-
internal static Meter Meter { get; } = new("ModelContextProtocol");
27+
internal static Meter Meter { get; } = new("Experimental.ModelContextProtocol");
2828

2929
}

tests/ModelContextProtocol.Tests/DiagnosticTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public async Task Session_TracksActivities()
1717
var activities = new List<Activity>();
1818

1919
using (var tracerProvider = OpenTelemetry.Sdk.CreateTracerProviderBuilder()
20-
.AddSource("ModelContextProtocol")
20+
.AddSource("Experimental.ModelContextProtocol")
2121
.AddInMemoryExporter(activities)
2222
.Build())
2323
{

0 commit comments

Comments
 (0)