Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datadog trace retention time? #2853

Closed
zdyj3170101136 opened this issue Sep 10, 2024 · 3 comments
Closed

datadog trace retention time? #2853

zdyj3170101136 opened this issue Sep 10, 2024 · 3 comments
Assignees
Labels
enhancement quick change/addition that does not need full team approval

Comments

@zdyj3170101136
Copy link

In Datadog's trace tail sampling strategy (https://docs.datadoghq.com/tracing/trace_pipeline/trace_retention/), whether to sample depends on whether the trace has p99 latency, etc.

I assume that this may be implemented by saving each trace in memory by traceid, and then judging after a period of time.

How long will the trace be retained in memory?

@zdyj3170101136 zdyj3170101136 added the enhancement quick change/addition that does not need full team approval label Sep 10, 2024
@github-actions github-actions bot added the needs-triage New issues that have not yet been triaged label Sep 10, 2024
@mtoffl01
Copy link
Contributor

Hi @zdyj3170101136 ,
I'm not sure I'm following: the doc you linked to describes our Trace Retention policies (that is, how long a trace is retained in the Datadog platform, once it has already been ingested/"sampled").

Our standard retention period for traces in the Datadog platform is 15 days.

Please clarify your question if I have not already answered it above. Thanks!

@mtoffl01 mtoffl01 self-assigned this Sep 13, 2024
@zdyj3170101136
Copy link
Author

你好@zdyj3170101136, 我不确定我是否理解:您链接到的文档描述了我们的跟踪保留策略(即,一旦跟踪被摄取/“采样”,它会在 Datadog 平台中保留多长时间)。

Datadog 平台上的痕迹的标准保留期为 15 天。

如果我上面没有回答,请澄清你的问题。谢谢!

i wonder how much time it would retain in memory.

if i have a long trace, the first span is 1 days ago and last span is current, would it be store by p99 policy?

@mtoffl01 mtoffl01 removed the needs-triage New issues that have not yet been triaged label Sep 16, 2024
@mtoffl01
Copy link
Contributor

mtoffl01 commented Sep 16, 2024

Generally speaking, the client will retain a trace until all spans in the trace have completed. Once all spans in the trace have completed, the client pushes the trace onto the buffer to be written out to the agent. The client flushes traces to the agent at an interval of 2s.

I'm not sure what "p99 policy" you're referring to; the only p99 calculation relating to traces that I can think of is the DDSketch metrics for span duration, which is not computed in the tracer.

@darccio darccio closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement quick change/addition that does not need full team approval
Projects
None yet
Development

No branches or pull requests

3 participants