Skip to content

Commit

Permalink
Remove explicit setting of telemetry metrics state
Browse files Browse the repository at this point in the history
Rely on the defaults
  • Loading branch information
andrewlock committed Oct 27, 2023
1 parent 5863e5c commit 901a2c9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 34 deletions.
1 change: 0 additions & 1 deletion .azure-pipelines/steps/run-in-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ steps:
--env DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID \
--env DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH \
--env DD_LOGGER_DD_TAGS \
--env DD_TELEMETRY_METRICS_ENABLED \
${{ parameters.extraArgs }} \
dd-trace-dotnet/${{ parameters.baseImage }}-${{ parameters.target }} \
dotnet /build/bin/Debug/_build.dll ${{ parameters.command }}
Expand Down
1 change: 0 additions & 1 deletion .azure-pipelines/ultimate-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ variables:
isPullRequest: $[eq(variables['Build.Reason'], 'PullRequest')]
# Run code coverage on main branches only, on scheduled build only
runCodeCoverage: $[or(eq(variables['run_code_coverage'], 'true'), and(eq(variables['Build.Reason'], 'Schedule'), or(in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/hotfix/'))))]
DD_TELEMETRY_METRICS_ENABLED: $[eq(variables['enable_metrics'], 'true')]
DD_DOTNET_TRACER_MSBUILD:
NugetPackageDirectory: $(System.DefaultWorkingDirectory)/packages
relativeNugetPackageDirectory: packages
Expand Down
8 changes: 0 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED

ProfilerIntegrationTests:
build:
Expand Down Expand Up @@ -416,7 +415,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED
- LDAP_SERVER=openldap-server:389
hostname: integrationtests
depends_on:
Expand Down Expand Up @@ -494,7 +492,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED
hostname: integrationtests
depends_on:
- aerospike
Expand Down Expand Up @@ -563,7 +560,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED
hostname: integrationtests

IntegrationTests.Serverless:
Expand Down Expand Up @@ -617,7 +613,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED
hostname: integrationtests

ExplorationTests:
Expand Down Expand Up @@ -667,7 +662,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED

StartDependencies:
image: andrewlock/wait-for-dependencies
Expand Down Expand Up @@ -758,7 +752,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED
depends_on:
- servicestackredis_arm64
- stackexchangeredis_arm64
Expand Down Expand Up @@ -835,7 +828,6 @@ services:
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCECOMMITID
- DD_LOGGER_SYSTEM_PULLREQUEST_SOURCEBRANCH
- DD_LOGGER_DD_TAGS
- DD_TELEMETRY_METRICS_ENABLED

start-test-agent:
image: andrewlock/wait-for-dependencies
Expand Down
5 changes: 0 additions & 5 deletions tracer/build/crank/os.profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ profiles:
DD_AGENT_HOST: "{{ controllerIp }}"
DD_TRACE_LOGGING_RATE: 6
DD_TRACE_DEBUG: 0
DD_TELEMETRY_METRICS_ENABLED: "{{ enable_metrics }}"
DD_TRACE_LOG_DIRECTORY: ".\\logs\\"
options:
requiredOperatingSystem: windows
Expand Down Expand Up @@ -49,7 +48,6 @@ profiles:
DD_AGENT_HOST: "{{ controllerIp }}"
DD_TRACE_LOGGING_RATE: 6
DD_TRACE_DEBUG: 0
DD_TELEMETRY_METRICS_ENABLED: "{{ enable_metrics }}"
DD_TRACE_LOG_DIRECTORY: "./logs"
options:
requiredOperatingSystem: linux
Expand Down Expand Up @@ -79,7 +77,6 @@ profiles:
DD_AGENT_HOST: "{{ controllerIp }}"
DD_TRACE_LOGGING_RATE: 6
DD_TRACE_DEBUG: 0
DD_TELEMETRY_METRICS_ENABLED: "{{ enable_metrics }}"
DD_ENV: throughput-adhoc
options:
requiredOperatingSystem: linux
Expand Down Expand Up @@ -107,7 +104,6 @@ profiles:
LD_LIBRARY_PATH: "{{ linuxProfilerPath }}/tracer-home-linux/linux-x64"
LD_PRELOAD: "{{ linuxProfilerPath }}/tracer-home-linux/linux-x64/Datadog.Linux.ApiWrapper.x64.so"
DD_PROFILING_ENABLED: 1
DD_TELEMETRY_METRICS_ENABLED: "{{ enable_metrics }}"
options:
requiredOperatingSystem: linux
requiredArchitecture: x64
Expand All @@ -133,7 +129,6 @@ profiles:
DD_AGENT_HOST: "{{ controllerIp }}"
DD_TRACE_LOGGING_RATE: 6
DD_TRACE_DEBUG: 0
DD_TELEMETRY_METRICS_ENABLED: "{{ enable_metrics }}"
DD_TRACE_LOG_DIRECTORY: "./logs"
options:
requiredOperatingSystem: linux
Expand Down
37 changes: 18 additions & 19 deletions tracer/build/crank/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ echo "BUILD_SOURCEVERSION=$BUILD_SOURCEVERSION"
echo "SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI=$SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI"
echo "BUILD_REPOSITORY_URI=$BUILD_REPOSITORY_URI"
echo "DD_CIVISIBILITY_AGENTLESS_ENABLED=$DD_CIVISIBILITY_AGENTLESS_ENABLED"
echo "DD_TELEMETRY_METRICS_ENABLED=$DD_TELEMETRY_METRICS_ENABLED"
echo "Will run extended throughput tests: $2"

repo="$SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI"
Expand Down Expand Up @@ -39,28 +38,28 @@ if [ "$1" = "windows" ]; then

echo "Running windows throughput tests"

crank --config Samples.AspNetCoreSimpleController.yml --scenario baseline --profile windows --json baseline_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=baseline --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario baseline --profile windows --json baseline_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=baseline --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="baseline_windows.json"

crank --config Samples.AspNetCoreSimpleController.yml --scenario calltarget_ngen --profile windows --json calltarget_ngen_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=calltarget_ngen --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario calltarget_ngen --profile windows --json calltarget_ngen_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=calltarget_ngen --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="calltarget_ngen_windows.json"

if [ "$2" = "True" ]; then
echo "Running throughput tests with stats enabled"
crank --config Samples.AspNetCoreSimpleController.yml --scenario trace_stats --profile windows --json trace_stats_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=trace_stats --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario trace_stats --profile windows --json trace_stats_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=trace_stats --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="trace_stats_windows.json"
fi

echo "Running manual instrumentation throughput tests"

crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_only --profile windows --json manual_only_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_only --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_only --profile windows --json manual_only_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_only --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="manual_only_windows.json"

crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_and_automatic --profile windows --json manual_and_automatic_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_and_automatic --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_and_automatic --profile windows --json manual_and_automatic_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_and_automatic --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="manual_and_automatic_windows.json"

if [ "$2" = "True" ]; then
crank --config Samples.AspNetCoreSimpleController.yml --scenario version_conflict --profile windows --json version_conflict_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=version_conflict --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario version_conflict --profile windows --json version_conflict_windows.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=version_conflict --property profile=windows --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="version_conflict_windows.json"
fi

Expand All @@ -75,28 +74,28 @@ elif [ "$1" = "linux" ]; then

echo "Running Linux x64 throughput tests"

crank --config Samples.AspNetCoreSimpleController.yml --scenario baseline --profile linux --json baseline_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=baseline --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario baseline --profile linux --json baseline_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=baseline --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="baseline_linux.json"

crank --config Samples.AspNetCoreSimpleController.yml --scenario calltarget_ngen --profile linux --json calltarget_ngen_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=calltarget_ngen --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario calltarget_ngen --profile linux --json calltarget_ngen_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=calltarget_ngen --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="calltarget_ngen_linux.json"

if [ "$2" = "True" ]; then
echo "Running throughput tests with stats enabled"
crank --config Samples.AspNetCoreSimpleController.yml --scenario trace_stats --profile linux --json trace_stats_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=trace_stats --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario trace_stats --profile linux --json trace_stats_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=trace_stats --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="trace_stats_linux.json"
fi

echo "Running manual instrumentation throughput tests"

crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_only --profile linux --json manual_only_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_only --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_only --profile linux --json manual_only_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_only --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="manual_only_linux.json"

crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_and_automatic --profile linux --json manual_and_automatic_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_and_automatic --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_and_automatic --profile linux --json manual_and_automatic_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_and_automatic --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="manual_and_automatic_linux.json"

if [ "$2" = "True" ]; then
crank --config Samples.AspNetCoreSimpleController.yml --scenario version_conflict --profile linux --json version_conflict_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=version_conflict --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario version_conflict --profile linux --json version_conflict_linux.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=version_conflict --property profile=linux --property arch=x64 --variable commit_hash=$commit_sha
dd-trace --crank-import="version_conflict_linux.json"
fi

Expand All @@ -111,28 +110,28 @@ elif [ "$1" = "linux_arm64" ]; then

echo "Running Linux arm64 throughput tests"

crank --config Samples.AspNetCoreSimpleController.yml --scenario baseline --profile linux_arm64 --json baseline_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=baseline --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario baseline --profile linux_arm64 --json baseline_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=baseline --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha
dd-trace --crank-import="baseline_linux_arm64.json"

crank --config Samples.AspNetCoreSimpleController.yml --scenario calltarget_ngen --profile linux_arm64 --json calltarget_ngen_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=calltarget_ngen --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario calltarget_ngen --profile linux_arm64 --json calltarget_ngen_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=calltarget_ngen --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha
dd-trace --crank-import="calltarget_ngen_linux_arm64.json"

if [ "$2" = "True" ]; then
echo "Running throughput tests with stats enabled"
crank --config Samples.AspNetCoreSimpleController.yml --scenario trace_stats --profile linux_arm64 --json trace_stats_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=trace_stats --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario trace_stats --profile linux_arm64 --json trace_stats_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=trace_stats --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha
dd-trace --crank-import="trace_stats_linux_arm64.json"
fi

echo "Running manual instrumentation throughput tests"

crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_only --profile linux_arm64 --json manual_only_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_only --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_only --profile linux_arm64 --json manual_only_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_only --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha
dd-trace --crank-import="manual_only_linux_arm64.json"

crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_and_automatic --profile linux_arm64 --json manual_and_automatic_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_and_automatic --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario manual_and_automatic --profile linux_arm64 --json manual_and_automatic_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=manual_and_automatic --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha
dd-trace --crank-import="manual_and_automatic_linux_arm64.json"

if [ "$2" = "True" ]; then
crank --config Samples.AspNetCoreSimpleController.yml --scenario version_conflict --profile linux_arm64 --json version_conflict_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=version_conflict --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha --variable enable_metrics=$DD_TELEMETRY_METRICS_ENABLED
crank --config Samples.AspNetCoreSimpleController.yml --scenario version_conflict --profile linux_arm64 --json version_conflict_linux_arm64.json $repository $commit --property name=AspNetCoreSimpleController --property scenario=version_conflict --property profile=linux_arm64 --property arch=arm64 --variable commit_hash=$commit_sha
dd-trace --crank-import="version_conflict_linux_arm64.json"
fi
else
Expand Down

0 comments on commit 901a2c9

Please sign in to comment.