Skip to content

Commit 93e2ce3

Browse files
clarify two env vars for enabling debug logging (#31320)
* clarify two env vars for enabling debug logging * Update content/en/tracing/trace_collection/automatic_instrumentation/single-step-apm/troubleshooting.md Co-authored-by: Michael Cretzman <[email protected]> --------- Co-authored-by: Michael Cretzman <[email protected]>
1 parent 5c6b5dc commit 93e2ce3

File tree

1 file changed

+11
-1
lines changed
  • content/en/tracing/trace_collection/automatic_instrumentation/single-step-apm

1 file changed

+11
-1
lines changed

content/en/tracing/trace_collection/automatic_instrumentation/single-step-apm/troubleshooting.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,17 @@ To confirm injection at the container level, check that:
6363
4. Language-specific directories exist (for example, `/opt/datadog/apm/library/java/` for Java).
6464

6565
To enable debug logs:
66-
1. Set `DD_APM_INSTRUMENTATION_DEBUG: true` in the pod spec.
66+
67+
1. Set the following in your pod spec:
68+
69+
{{< code-block lang="yaml" disable_copy="true" collapsible="true" >}}
70+
env:
71+
- name: DD_TRACE_DEBUG # debug logging for the tracer
72+
value: "true"
73+
- name: DD_APM_INSTRUMENTATION_DEBUG # debug logging for the injector
74+
value: "true"
75+
{{< /code-block >}}
76+
6777
2. Delete the pod to enable debug logs during injection.
6878

6979
## Configuration options that affect injection

0 commit comments

Comments
 (0)