Prevent errors caused by persistent polling for remote-config state
2024-04-29 18:49:56 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:49:57 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:49:58 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:49:59 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:50:00 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:50:01 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:50:02 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:50:03 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:50:04 UTC | TRACE | INFO | (pkg/config/remote/client/client.go:332 in pollLoop) | retrying the first update of remote-config state (could not acquire agent auth token: unable to read authentication token file: open C:\home\SiteExtensions\DevelopmentVerification.DdJava.Apm\v1_1_500068358-prerelease\Agent\auth_token: The system cannot find the file specified.)
2024-04-29 18:50:05 UTC | TRACE | DEBUG | (pkg/trace/stats/concentrator.go:291 in flushNow) | Update oldestTs to 1714416590000000000
Avoid confusion for what variables are used by the Tracer and the Agent for each runtime
Additional Notes
Environment variables removed
DD_AGENT_PIPE_NAME
DD_DOGSTATSD_WINDOWS_PIPE_NAME
DD_TRACE_TRANSPORT
Set DD_APM_REMOTE_TAGGER to false instead of 0 to avoid issues with boolean resolution in Java
Describe how to test/QA your changes
Run pipeline with RUNTIME=java and verify that the build script succeeds and the package deployed to self monitoring sends traces, runtime metrics, and custom metrics to Datadog.
What does this PR do?
Motivation
https://datadoghq.atlassian.net/browse/SVLS-4763
Additional Notes
DD_AGENT_PIPE_NAME
DD_DOGSTATSD_WINDOWS_PIPE_NAME
DD_TRACE_TRANSPORT
DD_APM_REMOTE_TAGGER
tofalse
instead of0
to avoid issues with boolean resolution in JavaDescribe how to test/QA your changes
Run pipeline with
RUNTIME=java
and verify that the build script succeeds and the package deployed to self monitoring sends traces, runtime metrics, and custom metrics to Datadog.