Skip to content

Commit

Permalink
ordinalignorcase
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Pimentel <[email protected]>
  • Loading branch information
vandonr and lucaspimentel committed Feb 25, 2025
1 parent f5e5e62 commit 345fb91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// </copyright>

#nullable enable
using Datadog.Trace.ClrProfiler.CallTarget;
using System;
using Datadog.Trace.ClrProfiler.CallTarget.Handlers;

namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.Protobuf;
Expand All @@ -15,7 +15,7 @@ internal static class Helper
public static void DisableInstrumentationIfInternalProtobufType<TMessage>()
{
var typeName = typeof(TMessage).FullName;
if (typeName != null && typeName.StartsWith("Google.Protobuf."))
if (typeName != null && typeName.StartsWith("Google.Protobuf.", StringComparison.OrdinalIgnoreCase))
{
// Google uses protobuf internally in the protobuf library, we don't want to capture those.
// We disable the integrations once and for all here.
Expand Down

0 comments on commit 345fb91

Please sign in to comment.