Skip to content

[BUG] Error getting metrics profile: period between metrics collection is too small #2863

Description

@SvenGasterstaedt

When our service is terminating, the corresponding dd profiler is terminated as well via profiler.Stop()

This results in an interupt of the sleep period of the profiler in (which may on some occasions be smaller then 1 sec)
image
image
image

Version of dd-trace-go
v1.67.1

Describe what happened:
Datadog Tracer v1.67.1 ERROR: Error getting metrics profile: period between metrics collection is too small min=1s observed=573.458102ms; skipping. (occurred: 13 Sep 24 09:49 UTC)

Describe what you expected:
No error when the service is shutting down and the profiler is terminating (even if it just reported its metrics)

Steps to reproduce the issue:

Additional environment details (Version of Go, Operating System, etc.):
go 1.23.1

Metadata

Metadata

Assignees

Labels

bugunintended behavior that has to be fixedprofiler

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions