Skip to content

System.InvalidOperationException: The metric size exceeds the internal buffer capacity 512 observed frequently in ASP.NET app with Datadog tracing #7549

@ansonpinhero

Description

@ansonpinhero

Tracer Version(s)

3.15.0.0

Operating system and platform

Linux X64

TFM

NET8.0

Description

While investigating high CPU usage in an Azure Web App (containerized ASP.NET Core application) instrumented with Datadog, we observed a large number of exceptions being thrown within a short period.

During a 10-minute trace capture, the following exception occurred over 300k times:

| Throw(System.InvalidOperationException) The metric size exceeds the internal buffer capacity 512: runtime.dotnet.gc.pause_time:6.8234|ms|#lang:.NET,lang_interpreter:.NET,lang_version:8.0.20,tracer_version:3.15.0.0

Environment

App type: ASP.NET Core Web App

Hosting: Azure Web App (Containerized)

.NET Runtime: .NET 8.0.20

Datadog Tracer Version: 3.15.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions