Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 867fefb

Browse files
RassKpjanotti
andauthored
Change to SIGNALFX_ env vars (#145)
* change to signalfx vars Signed-off-by: RassK <[email protected]> * revert ultimate pipeline Signed-off-by: RassK <[email protected]> * fix some additional namings * update docs * fix some additional namings * fix copyright Co-authored-by: Paulo Janotti <[email protected]>
1 parent 3ba2278 commit 867fefb

File tree

181 files changed

+1088
-983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+1088
-983
lines changed

.azure-pipelines/mininal-pipeline.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ variables:
5757
ddTracerHome: $(System.DefaultWorkingDirectory)/tracer/src/bin/dd-tracer-home
5858
tracerHome: $(System.DefaultWorkingDirectory)/tracer/src/bin/windows-tracer-home
5959
artifacts: $(System.DefaultWorkingDirectory)/tracer/src/bin/artifacts
60-
ddApiKey: $(DD_API_KEY)
61-
DD_DOTNET_TRACER_MSBUILD:
60+
ddApiKey: $(SIGNALFX_API_KEY)
61+
SIGNALFX_DOTNET_TRACER_MSBUILD:
6262
NugetPackageDirectory: $(System.DefaultWorkingDirectory)/packages
6363
relativeNugetPackageDirectory: packages
6464
# For scheduled builds, only run benchmarks and crank (and deps).
@@ -74,8 +74,8 @@ resources:
7474
ports:
7575
- 8126:8126
7676
env:
77-
DD_API_KEY: $(ddApiKey)
78-
DD_INSIDE_CI: true
77+
SIGNALFX_API_KEY: $(ddApiKey)
78+
SIGNALFX_INSIDE_CI: true
7979

8080
# Stages
8181
stages:

.azure-pipelines/setup_tracer.ps1

+32-32
Original file line numberDiff line numberDiff line change
@@ -2,81 +2,81 @@ $ProgressPreference = 'SilentlyContinue'
22

33
echo "Getting latest release version"
44
# Get the latest release tag from the github release page
5-
$release_version = (Invoke-WebRequest https://api.github.com/repos/datadog/dd-trace-dotnet/releases | ConvertFrom-Json)[0].tag_name.SubString(1)
5+
$release_version = (Invoke-WebRequest https://api.github.com/repos/signalfx/signalfx-dotnet-tracing/releases | ConvertFrom-Json)[0].tag_name.SubString(1)
66

7-
$otel_tracer_workingfolder = $env:OTEL_TRACER_WORKINGFOLDER
8-
$otel_tracer_home = ""
9-
$otel_tracer_msbuild = ""
10-
$otel_tracer_integrations = ""
11-
$otel_tracer_profiler_32 = ""
12-
$otel_tracer_profiler_64 = ""
7+
$signalfx_tracer_workingfolder = $env:SIGNALFX_TRACER_WORKINGFOLDER
8+
$signalfx_tracer_home = ""
9+
$signalfx_tracer_msbuild = ""
10+
$signalfx_tracer_integrations = ""
11+
$signalfx_tracer_profiler_32 = ""
12+
$signalfx_tracer_profiler_64 = ""
1313

1414

1515
# Download the binary file depending of the current operating system and extract the content to the "release" folder
1616
echo "Downloading tracer v$release_version"
1717
if ($env:os -eq "Windows_NT")
1818
{
19-
$url = "https://github.com/DataDog/dd-trace-dotnet/releases/download/v$($release_version)/windows-tracer-home.zip"
19+
$url = "https://github.com/signalfx/signalfx-dotnet-tracing/releases/download/v$($release_version)/windows-tracer-home.zip"
2020

2121
Invoke-WebRequest -Uri $url -OutFile windows.zip
2222
echo "Extracting windows.zip"
2323
Expand-Archive windows.zip -DestinationPath .\release
2424
Remove-Item windows.zip
2525

26-
if ([string]::IsNullOrEmpty($otel_tracer_workingfolder)) {
27-
$otel_tracer_home = "$(pwd)\release"
26+
if ([string]::IsNullOrEmpty($signalfx_tracer_workingfolder)) {
27+
$signalfx_tracer_home = "$(pwd)\release"
2828
} else {
29-
$otel_tracer_home = "$otel_tracer_workingfolder\release"
29+
$signalfx_tracer_home = "$signalfx_tracer_workingfolder\release"
3030
}
3131

32-
$otel_tracer_msbuild = "$otel_tracer_home\netstandard2.0\OpenTelemetry.AutoInstrumentation.MSBuild.dll"
33-
$otel_tracer_integrations = "$otel_tracer_home\integrations.json"
34-
$otel_tracer_profiler_32 = "$otel_tracer_home\win-x86\OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.dll"
35-
$otel_tracer_profiler_64 = "$otel_tracer_home\win-x64\OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.dll"
32+
$signalfx_tracer_msbuild = "$signalfx_tracer_home\netstandard2.0\OpenTelemetry.AutoInstrumentation.MSBuild.dll"
33+
$signalfx_tracer_integrations = "$signalfx_tracer_home\integrations.json"
34+
$signalfx_tracer_profiler_32 = "$signalfx_tracer_home\win-x86\OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.dll"
35+
$signalfx_tracer_profiler_64 = "$signalfx_tracer_home\win-x64\OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.dll"
3636
}
3737
else
3838
{
3939
# File version is the same as the release version without the prerelease suffix.
4040
$file_version = $release_version.replace("-prerelease", "")
4141

42-
$url = "https://github.com/DataDog/dd-trace-dotnet/releases/download/v$($release_version)/datadog-dotnet-apm-$($file_version).tar.gz"
42+
$url = "https://github.com/signalfx/signalfx-dotnet-tracing/releases/download/v$($release_version)/signalfx-dotnet-tracing-$($file_version).tar.gz"
4343

4444
Invoke-WebRequest -Uri $url -OutFile linux.tar.gz
4545
mkdir release
4646
echo "Extracting linux.tar.gz"
4747
tar -xvzf linux.tar.gz -C ./release
4848
Remove-Item linux.tar.gz
4949
# Ensure the profiler can write the native log profiler
50-
sudo mkdir -p /var/log/opentelemetry/dotnet
51-
sudo chmod -R 777 /var/log/opentelemetry/dotnet
50+
sudo mkdir -p /var/log/signalfx/dotnet
51+
sudo chmod -R 777 /var/log/signalfx/dotnet
5252

53-
if ([string]::IsNullOrEmpty($otel_tracer_workingfolder)) {
54-
$otel_tracer_home = "$(pwd)/release"
53+
if ([string]::IsNullOrEmpty($signalfx_tracer_workingfolder)) {
54+
$signalfx_tracer_home = "$(pwd)/release"
5555
} else {
56-
$otel_tracer_home = "$otel_tracer_workingfolder/release"
56+
$signalfx_tracer_home = "$signalfx_tracer_workingfolder/release"
5757
}
5858

59-
$otel_tracer_msbuild = "$otel_tracer_home/netstandard2.0/OpenTelemetry.AutoInstrumentation.MSBuild.dll"
60-
$otel_tracer_integrations = "$otel_tracer_home/integrations.json"
61-
$otel_tracer_profiler_64 = "$otel_tracer_home/OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.so"
59+
$signalfx_tracer_msbuild = "$signalfx_tracer_home/netstandard2.0/OpenTelemetry.AutoInstrumentation.MSBuild.dll"
60+
$signalfx_tracer_integrations = "$signalfx_tracer_home/integrations.json"
61+
$signalfx_tracer_profiler_64 = "$signalfx_tracer_home/OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.so"
6262
}
6363

6464
# Set all environment variables to attach the profiler to the following pipeline steps
6565
echo "Setting environment variables..."
6666

67-
echo "##vso[task.setvariable variable=OTEL_ENV]CI"
68-
echo "##vso[task.setvariable variable=OTEL_DOTNET_TRACER_HOME]$otel_tracer_home"
69-
echo "##vso[task.setvariable variable=OTEL_DOTNET_TRACER_MSBUILD]$otel_tracer_msbuild"
70-
echo "##vso[task.setvariable variable=OTEL_INTEGRATIONS]$otel_tracer_integrations"
67+
echo "##vso[task.setvariable variable=SIGNALFX_ENV]CI"
68+
echo "##vso[task.setvariable variable=SIGNALFX_DOTNET_TRACER_HOME]$signalfx_tracer_home"
69+
echo "##vso[task.setvariable variable=SIGNALFX_DOTNET_TRACER_MSBUILD]$signalfx_tracer_msbuild"
70+
echo "##vso[task.setvariable variable=SIGNALFX_INTEGRATIONS]$signalfx_tracer_integrations"
7171

7272
echo "##vso[task.setvariable variable=CORECLR_ENABLE_PROFILING]1"
7373
echo "##vso[task.setvariable variable=CORECLR_PROFILER]{918728DD-259F-4A6A-AC2B-B85E1B658318}"
74-
echo "##vso[task.setvariable variable=CORECLR_PROFILER_PATH_32]$otel_tracer_profiler_32"
75-
echo "##vso[task.setvariable variable=CORECLR_PROFILER_PATH_64]$otel_tracer_profiler_64"
74+
echo "##vso[task.setvariable variable=CORECLR_PROFILER_PATH_32]$signalfx_tracer_profiler_32"
75+
echo "##vso[task.setvariable variable=CORECLR_PROFILER_PATH_64]$signalfx_tracer_profiler_64"
7676

7777
echo "##vso[task.setvariable variable=COR_ENABLE_PROFILING]1"
7878
echo "##vso[task.setvariable variable=COR_PROFILER]{918728DD-259F-4A6A-AC2B-B85E1B658318}"
79-
echo "##vso[task.setvariable variable=COR_PROFILER_PATH_32]$otel_tracer_profiler_32"
80-
echo "##vso[task.setvariable variable=COR_PROFILER_PATH_64]$otel_tracer_profiler_64"
79+
echo "##vso[task.setvariable variable=COR_PROFILER_PATH_32]$signalfx_tracer_profiler_32"
80+
echo "##vso[task.setvariable variable=COR_PROFILER_PATH_64]$signalfx_tracer_profiler_64"
8181

8282
echo "Done."

.azure-pipelines/steps/run-in-docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ steps:
3030
--env NugetPackageDirectory=/project/$(relativeNugetPackageDirectory) \
3131
--env tracerHome=/project/$(relativeTracerHome) \
3232
--env artifacts=/project/$(relativeArtifacts) \
33-
--env OTEL_CLR_ENABLE_NGEN=$(OTEL_CLR_ENABLE_NGEN) \
33+
--env SIGNALFX_CLR_ENABLE_NGEN=$(SIGNALFX_CLR_ENABLE_NGEN) \
3434
dd-trace-dotnet/${{ parameters.baseImage }}-${{ parameters.target }} \
3535
dotnet /build/bin/Debug/_build.dll ${{ parameters.command }}
3636
displayName: Run '${{ parameters.command }}' in Docker

.azure-pipelines/third-party-test-suites.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ schedules:
1313
variables:
1414
buildConfiguration: Release
1515
dotnetCoreSdk5Version: 5.0.103
16-
ddApiKey: $(DD_API_KEY)
17-
DD_DOTNET_TRACER_MSBUILD:
16+
ddApiKey: $(SIGNALFX_API_KEY)
17+
SIGNALFX_DOTNET_TRACER_MSBUILD:
1818
NugetPackageDirectory: $(System.DefaultWorkingDirectory)/packages
1919
relativeNugetPackageDirectory: packages
2020
dotnetToolTag: build-dotnet-tool
@@ -28,8 +28,8 @@ resources:
2828
ports:
2929
- 8126:8126
3030
env:
31-
DD_API_KEY: $(ddApiKey)
32-
DD_INSIDE_CI: true
31+
SIGNALFX_API_KEY: $(ddApiKey)
32+
SIGNALFX_INSIDE_CI: true
3333

3434
stages:
3535
- stage: run_tests

.github/ISSUE_TEMPLATE/bug_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ Add any other context about the problem here.
3333
NOTE: To contact our support team, see https://www.datadoghq.com/support/
3434
When contacting support, please include the information requested above.
3535
If possible, also include the tracer log files found (by default) in:
36-
Windows: %ProgramData%\Datadog .NET Tracer\logs\
37-
Linux: /var/log/datadog/dotnet/
36+
Windows: %ProgramData%\SignalFx .NET Tracing\logs\
37+
Linux: /var/log/signalfx/dotnet/
3838
--!>

.github/workflows/workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
--env NugetPackageDirectory=/project/packages \
3636
--env tracerHome=/project/tracer/bin/tracer-home \
3737
--env artifacts=/project/tracer/src/bin/artifacts \
38-
--env OTEL_CLR_ENABLE_NGEN=${OTEL_CLR_ENABLE_NGEN} \
38+
--env SIGNALFX_CLR_ENABLE_NGEN=${SIGNALFX_CLR_ENABLE_NGEN} \
3939
dd-trace-dotnet/${baseImage}-builder \
4040
dotnet /build/bin/Debug/_build.dll Clean BuildTracerHome ZipTracerHome
4141
- uses: actions/upload-artifact@v2

copyright.ps1

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
param(
2+
[Parameter(Mandatory=$true)]
3+
[string]$HASH
4+
)
5+
6+
$files = git diff --name-only --diff-filter=M $HASH
7+
8+
foreach($file in $files){
9+
$content = Get-Content $file;
10+
$new = @();
11+
$changed = $false;
12+
13+
foreach($line in $content){
14+
$new += $line;
15+
16+
if(-not $changed -and $line -match "copyright>"){
17+
$new += "`r`n// Modified by Splunk Inc."
18+
$changed = $true;
19+
}
20+
}
21+
22+
if($changed) {
23+
Set-Content $file -Value $new
24+
}
25+
}

defaults.env

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export CORECLR_ENABLE_PROFILING=1
22
export CORECLR_PROFILER='{918728DD-259F-4A6A-AC2B-B85E1B658318}'
3-
export CORECLR_PROFILER_PATH=/opt/opentelemetry-dotnet-autoinstrumentation/OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.so
4-
export OTEL_INTEGRATIONS=/opt/opentelemetry-dotnet-autoinstrumentation/integrations.json
5-
export OTEL_DOTNET_TRACER_HOME=/opt/opentelemetry-dotnet-autoinstrumentation
3+
export CORECLR_PROFILER_PATH=/opt/signalfx/OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.so
4+
export SIGNALFX_INTEGRATIONS=/opt/signalfx/integrations.json
5+
export SIGNALFX_DOTNET_TRACER_HOME=/opt/signalfx

dev/envvars.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export CORECLR_PROFILER="{918728DD-259F-4A6A-AC2B-B85E1B658318}"
3434
export CORECLR_PROFILER_PATH="${PWD}/src/Datadog.Trace.ClrProfiler.Native/bin/Debug/x64/OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.${SUFIX}"
3535

3636
# Configure OpenTelemetry Tracer
37-
export OTEL_DOTNET_TRACER_HOME="${PWD}/src/Datadog.Trace.ClrProfiler.Native/bin/Debug/x64"
38-
export OTEL_INTEGRATIONS="${PWD}/integrations.json"
39-
export OTEL_VERSION="1.0.0"
40-
export OTEL_TRACE_AGENT_URL="http://localhost:9411/api/v2/spans"
41-
export OTEL_TRACE_DEBUG="1"
42-
export OTEL_EXPORTER="Zipkin"
43-
export OTEL_DUMP_ILREWRITE_ENABLED="0"
44-
export OTEL_CLR_ENABLE_INLINING="1"
45-
export OTEL_CONVENTION="OpenTelemetry"
37+
export SIGNALFX_DOTNET_TRACER_HOME="${PWD}/src/Datadog.Trace.ClrProfiler.Native/bin/Debug/x64"
38+
export SIGNALFX_INTEGRATIONS="${PWD}/integrations.json"
39+
export SIGNALFX_VERSION="1.0.0"
40+
export SIGNALFX_TRACE_AGENT_URL="http://localhost:9411/api/v2/spans"
41+
export SIGNALFX_TRACE_DEBUG="1"
42+
export SIGNALFX_EXPORTER="Zipkin"
43+
export SIGNALFX_DUMP_ILREWRITE_ENABLED="0"
44+
export SIGNALFX_CLR_ENABLE_INLINING="1"
45+
export SIGNALFX_CONVENTION="OpenTelemetry"

devenv.bat

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ rem Enable .NET Core Profiling API
5252
SET CORECLR_ENABLE_PROFILING=1
5353
SET CORECLR_PROFILER={918728DD-259F-4A6A-AC2B-B85E1B658318}
5454
SET CORECLR_PROFILER_PATH=%~dp0\src\Datadog.Trace.ClrProfiler.Native\bin\%profiler_configuration%\%profiler_platform%\OpenTelemetry.AutoInstrumentation.ClrProfiler.Native.dll
55-
SET OTEL_APPSEC_ENABLED=false
55+
SET SIGNALFX_APPSEC_ENABLED=false
5656

5757
rem Don't attach the profiler to these processes
58-
SET OTEL_PROFILER_EXCLUDE_PROCESSES=devenv.exe;JetBrains.DPA.Runner.exe;JetBrains.Debugger.Worker.exe;Rider.Backend64.exe;Microsoft.ServiceHub.Controller.exe;ServiceHub.Host.CLR.exe;ServiceHub.TestWindowStoreHost.exe;ServiceHub.DataWarehouseHost.exe;sqlservr.exe;VBCSCompiler.exe;iisexpresstray.exe;msvsmon.exe;PerfWatson2.exe;ServiceHub.IdentityHost.exe;ServiceHub.VSDetouredHost.exe;ServiceHub.SettingsHost.exe;ServiceHub.Host.CLR.x86.exe;vstest.console.exe;ServiceHub.RoslynCodeAnalysisService32.exe;testhost.x86.exe;MSBuild.exe;ServiceHub.ThreadedWaitDialog.exe
58+
SET SIGNALFX_PROFILER_EXCLUDE_PROCESSES=devenv.exe;JetBrains.DPA.Runner.exe;JetBrains.Debugger.Worker.exe;Rider.Backend64.exe;Microsoft.ServiceHub.Controller.exe;ServiceHub.Host.CLR.exe;ServiceHub.TestWindowStoreHost.exe;ServiceHub.DataWarehouseHost.exe;sqlservr.exe;VBCSCompiler.exe;iisexpresstray.exe;msvsmon.exe;PerfWatson2.exe;ServiceHub.IdentityHost.exe;ServiceHub.VSDetouredHost.exe;ServiceHub.SettingsHost.exe;ServiceHub.Host.CLR.x86.exe;vstest.console.exe;ServiceHub.RoslynCodeAnalysisService32.exe;testhost.x86.exe;MSBuild.exe;ServiceHub.ThreadedWaitDialog.exe
5959

6060
rem Set dotnet tracer home path
61-
SET OTEL_DOTNET_TRACER_HOME=%~dp0
62-
SET OTEL_INTEGRATIONS=%OTEL_DOTNET_TRACER_HOME%\integrations.json
61+
SET SIGNALFX_DOTNET_TRACER_HOME=%~dp0
62+
SET SIGNALFX_INTEGRATIONS=%SIGNALFX_DOTNET_TRACER_HOME%\integrations.json
6363

6464
if "%start_visual_studio%" == "true" (
6565
echo Starting Visual Studio...

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ services:
266266
ports:
267267
- "8080:80"
268268
environment:
269-
- OTEL_CLR_ENABLE_NGEN=${OTEL_CLR_ENABLE_NGEN:-0}
269+
- SIGNALFX_CLR_ENABLE_NGEN=${SIGNALFX_CLR_ENABLE_NGEN:-0}
270270

271271
IntegrationTests:
272272
build:
@@ -284,7 +284,7 @@ services:
284284
- artifacts=/project/${relativeArtifacts:-src/bin/artifacts}
285285
- framework=${framework:-netcoreapp3.1}
286286
- baseImage=${baseImage:-default}
287-
- OTEL_CLR_ENABLE_NGEN=${OTEL_CLR_ENABLE_NGEN:-0}
287+
- SIGNALFX_CLR_ENABLE_NGEN=${SIGNALFX_CLR_ENABLE_NGEN:-0}
288288
- MONGO_HOST=mongo
289289
- SERVICESTACK_REDIS_HOST=servicestackredis:6379
290290
- STACKEXCHANGE_REDIS_HOST=stackexchangeredis:6379
@@ -353,7 +353,7 @@ services:
353353
- artifacts=/project/${relativeArtifacts:-src/bin/artifacts}
354354
- framework=${framework:-netcoreapp3.1}
355355
- baseImage=${baseImage:-debian}
356-
- OTEL_CLR_ENABLE_NGEN=${OTEL_CLR_ENABLE_NGEN:-0}
356+
- SIGNALFX_CLR_ENABLE_NGEN=${SIGNALFX_CLR_ENABLE_NGEN:-0}
357357
- MONGO_HOST=mongo_arm64
358358
- SERVICESTACK_REDIS_HOST=servicestackredis_arm64:6379
359359
- STACKEXCHANGE_REDIS_HOST=stackexchangeredis_arm64:6379

0 commit comments

Comments
 (0)