nits: doc update, test cleanup (#3520)
This commit is contained in:
parent
c1df3a7577
commit
5653454b0c
|
|
@ -46,6 +46,7 @@ requires adding the package
|
||||||
to the application.
|
to the application.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
|
using OpenTelemetry;
|
||||||
using OpenTelemetry.Trace;
|
using OpenTelemetry.Trace;
|
||||||
|
|
||||||
public class Program
|
public class Program
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Immutable;
|
using System.Collections.Immutable;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
@ -64,13 +63,13 @@ namespace OpenTelemetry.Instrumentation.Http.Tests
|
||||||
using (serverLifeTime)
|
using (serverLifeTime)
|
||||||
|
|
||||||
using (Sdk.CreateTracerProviderBuilder()
|
using (Sdk.CreateTracerProviderBuilder()
|
||||||
.AddHttpClientInstrumentation((opt) =>
|
.AddHttpClientInstrumentation((opt) =>
|
||||||
{
|
{
|
||||||
opt.Enrich = ActivityEnrichment;
|
opt.Enrich = ActivityEnrichment;
|
||||||
opt.RecordException = tc.RecordException ?? false;
|
opt.RecordException = tc.RecordException ?? false;
|
||||||
})
|
})
|
||||||
.AddProcessor(processor.Object)
|
.AddProcessor(processor.Object)
|
||||||
.Build())
|
.Build())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue