You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/tracing/setup/dotnet-core.md
+1-37Lines changed: 1 addition & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,30 +226,6 @@ There are multiple ways to configure the .NET Tracer:
226
226
* creating a `datadog.json` file
227
227
228
228
{{< tabs >}}
229
-
{{% tab "Code" %}}
230
-
231
-
To configure the Tracer in application code, create a `TracerSettings` from the default configuration sources. Set properties on this `TracerSettings` instance before passing it to a `Tracer` constructor. For example:
**Note:** Settings must be set on `TracerSettings`_before_ creating the `Tracer`. Changes made to `TracerSettings` properies after the `Tracer` is created are ignored.
251
-
252
-
{{% /tab %}}
253
229
254
230
{{% tab "Environment variables" %}}
255
231
@@ -382,18 +358,6 @@ The following table lists configuration variables that are available only when u
Copy file name to clipboardExpand all lines: content/en/tracing/setup/dotnet-framework.md
-19Lines changed: 0 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,25 +167,6 @@ Tracer.Instance = tracer;
167
167
168
168
{{% /tab %}}
169
169
170
-
{{% tab "Environment variables" %}}
171
-
172
-
To configure the Tracer using environment variables, set the variables before launching the instrumented application.
173
-
174
-
For example:
175
-
176
-
```cmd
177
-
rem Set environment variables
178
-
SET DD_TRACE_AGENT_URL=http://localhost:8126
179
-
SET DD_SERVICE_NAME=MyService
180
-
181
-
rem Launch application
182
-
example.exe
183
-
```
184
-
185
-
**Note:** To set environment variables for a Windows Service, use the multi-string key `HKLM\System\CurrentControlSet\Services\{service name}\Environment` in the Windows Registry.
186
-
187
-
{{% /tab %}}
188
-
189
170
{{% tab "web.config" %}}
190
171
191
172
To configure the Tracer using an `app.config` or `web.config` file, use the `<appSettings>` section. For example:
0 commit comments