From d2d5edf27b396cf5b981450f34c47362de4e4cff Mon Sep 17 00:00:00 2001 From: Bezaleel Olakunori Date: Wed, 23 Aug 2023 08:49:54 +0200 Subject: [PATCH] Increase the character limit of the `MeterProviderBuilderSdk1's InstrumentNameRegex --- src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs index 9ee5b71b7ab..32e09691771 100644 --- a/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs +++ b/src/OpenTelemetry/Metrics/Builder/MeterProviderBuilderSdk.cs @@ -48,7 +48,7 @@ public MeterProviderBuilderSdk(IServiceProvider serviceProvider) // Customers: This is not guaranteed to work forever. We may change this // mechanism in the future do this at your own risk. public static Regex InstrumentNameRegex { get; set; } = new( - @"^[a-z][a-z0-9-._]{0,62}$", RegexOptions.IgnoreCase | RegexOptions.Compiled); + @"^[a-z][a-z0-9-._]{0,254}$", RegexOptions.IgnoreCase | RegexOptions.Compiled); public List Instrumentation { get; } = new();