OTEL .NET Runtime Instrumentation
This commit is contained in:
parent
677f4b1163
commit
7b32501f19
2 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,7 @@
|
|||
<PackageReference Include="LibDeflate.Bindings" Version="1.0.2.120" />
|
||||
<PackageReference Include="OpenTelemetry" Version="1.10.0-beta.1" />
|
||||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.10.0-beta.1" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.9.0" />
|
||||
<PackageReference Include="PollGroup" Version="1.5.1" />
|
||||
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public class Telemetry
|
|||
{
|
||||
MeterProvider = Sdk.CreateMeterProviderBuilder()
|
||||
.ConfigureResource(r => r.AddService("ModernUO"))
|
||||
.AddRuntimeInstrumentation()
|
||||
.AddOtlpExporter(options =>
|
||||
{
|
||||
options.BatchExportProcessorOptions.ScheduledDelayMilliseconds = TimeSpan.FromSeconds(20.0).Milliseconds;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue