Skip to content

Commit

Permalink
Merge branch 'main' into yunl/PI
Browse files Browse the repository at this point in the history
  • Loading branch information
utpilla authored Oct 14, 2022
2 parents 8ebb7e0 + fc969be commit 5320c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions examples/runtime-instrumentation/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ public static void Main()
{
using var meterProvider = Sdk.CreateMeterProviderBuilder()
.AddRuntimeInstrumentation()
.AddPrometheusExporter(options =>
{
options.StartHttpListener = true;
options.ScrapeResponseCacheDurationMilliseconds = 0;
})
.AddPrometheusHttpListener()
.Build();

// Most of the process.runtime.dotnet.gc.* metrics are only available after the GC finished at least one collection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OpenTelemetry.Exporter.Prometheus" Version="1.3.0-rc.2" />
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.HttpListener" Version="1.4.0-beta.1" />
<ProjectReference Include="$(RepoRoot)\src\OpenTelemetry.Instrumentation.Runtime\OpenTelemetry.Instrumentation.Runtime.csproj" />
</ItemGroup>
</Project>

0 comments on commit 5320c82

Please sign in to comment.