- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
A flare allows you to send necessary troubleshooting information to the Datadog support team, including tracer logs, with sensitive data removed. Flares are useful for troubleshooting issues like high CPU usage, high memory usage, and missing spans.
1.26.0
or greater2.11.0
or greater5.15.0
or greater, or 4.39.0
or greater2.46.0
or greaterTo send a flare from the Datadog site, make sure you’ve enabled Fleet Automation and Remote Configuration on the Agent. To send a remote flare:
For example:
Use Datadog debug settings to diagnose issues or audit trace data. Datadog does not recommend that you enable debug mode in production systems because it increases the number of events that are sent to your loggers. Use debug mode for debugging purposes only.
Debug mode is disabled by default. To enable it, follow the corresponding language tracer instructions:
To enable debug mode for the Datadog .NET Tracer, set the DD_TRACE_DEBUG
configuration setting to true
. This setting can be set as an environment variable, in the web.config
or app.config
file (.NET Framework only), or in a datadog.json
file. Alternatively, you can enable debug mode by calling GlobalSettings.SetDebugEnabled(true)
:
using Datadog.Trace;
// enable debug mode
GlobalSettings.SetDebugEnabled(true);
Logs files are saved in the following directories by default. Use the DD_TRACE_LOG_DIRECTORY
setting to change these paths.
Platform | Path |
---|---|
Windows | %ProgramData%\Datadog .NET Tracer\logs\ |
Linux | /var/log/datadog/dotnet/ |
Linux (when using Kubernetes library injection) | /datadog-lib/logs |
Azure App Service | %AzureAppServiceHomeDirectory%\LogFiles\datadog |
Note:: On Linux, you must create the logs directory before you enabled debug mode.
Since version 2.19.0
, you can use the DD_TRACE_LOGFILE_RETENTION_DAYS
setting to configure the tracer to delete log files from the current logging directory on startup. The tracer deletes log files the same age and older than the given number of days, with a default value of 31
.
For more details on how to configure the .NET Tracer, see the Configuration section.
There are two types of logs that are created in these paths:
dotnet-tracer-native-<processname>-<processid>.log
. From version 1.21.0 to 1.25.x, these logs were saved as dotnet-tracer-native.log
. In 1.20.x and older versions, this was stored as dotnet-profiler.log
.dotnet-tracer-managed-<processname>-<date>.log
. In 1.20.x and older versions, this was stored as dotnet-tracer-<processname>-<date>.log
.When debug mode for your tracer is enabled, tracer-specific log messages report how the tracer was initialized and whether traces were sent to the Agent. Debug logs are stored in a separate path depending on your logging configuration. If you enable application-level tracer information, debug logs are also sent in the flare for supported languages. The following log examples show what might appear in your log file.
If there are errors that you don’t understand, or if traces are reported as flushed to Datadog but you cannot see them in the Datadog UI, contact Datadog support and provide the relevant log entries with a flare.
Logs from native code:
[dotnet] 19861: [debug] JITCompilationStarted: function_id=<function id> token=<token id> name=System.Net.Http.Headers.HttpHeaders.RemoveParsedValue()
Logs from managed code showing spans were generated:
{ MachineName: ".", ProcessName: "dotnet", PID: <process id>, AppDomainName: "test-webapi" }
YYYY-MM-DD HH:MM:SS.<integer> +00:00 [DBG] Span started: [s_id: <span id>, p_id: <parent span id>, t_id: <trace id>]
{ MachineName: ".", ProcessName: "dotnet", PID: <process id>, AppDomainName: "test-webapi" }
YYYY-MM-DD HH:MM:SS.<integer> +00:00 [DBG] Span closed: [s_id: <span id>, p_id: <parent span id>, t_id: <trace id>] for (Service: test-webapi, Resource: custom, Operation: custom.function, Tags: [<span tags>])
Logs from managed code showing traces couldn’t be sent to the Datadog Agent:
YYYY-MM-DD HH:MM:SS.<integer> +00:00 [ERR] An error occurred while sending traces to the agent at System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
추가 유용한 문서, 링크 및 기사: