Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scope info and version to Prometheus exporter #5086

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
665537c
Add scope info and version to Prometheus exporter
robertcoltheart Nov 27, 2023
676b700
Add tests and unshipped api
robertcoltheart Nov 27, 2023
0203e64
Fix tests
robertcoltheart Nov 27, 2023
44eaa4d
Add to changelog
robertcoltheart Nov 27, 2023
f8ee51b
Fix build and reuse scopes
robertcoltheart Nov 29, 2023
395a7fc
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart Nov 29, 2023
4ba86a8
Fix build, add extra newline for scope_info
robertcoltheart Nov 29, 2023
ab9292c
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart Nov 29, 2023
6192827
Fix tests
robertcoltheart Nov 29, 2023
74014ac
Merge branch 'feature/prometheus-scope-info' of https://github.com/ro…
robertcoltheart Nov 29, 2023
9526647
Working with prometheus now
robertcoltheart Nov 30, 2023
da28e9d
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart Nov 30, 2023
937b7da
Modify output depending on accept headers
robertcoltheart Nov 30, 2023
42da2d2
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart Nov 30, 2023
5b5f0df
Add tests
robertcoltheart Nov 30, 2023
4e5e577
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart Dec 7, 2023
b5c80db
Fix merge
robertcoltheart Dec 7, 2023
f0b263d
Tidy
robertcoltheart Dec 7, 2023
6753ad9
Fixed changelog
robertcoltheart Dec 7, 2023
d452ab2
Add tests and ability to disable scope info
robertcoltheart Dec 7, 2023
8727a79
Fix build
robertcoltheart Dec 7, 2023
63f0b36
Spelling
robertcoltheart Dec 7, 2023
3c134cd
Merge branch 'main' into feature/prometheus-scope-info
cijothomas Dec 7, 2023
a21c6ce
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart Dec 7, 2023
033a903
Scope info is not optional
robertcoltheart Dec 10, 2023
b33199a
Merge branch 'feature/prometheus-scope-info' of https://github.com/ro…
robertcoltheart Dec 10, 2023
89f735d
Tidy code
robertcoltheart Dec 10, 2023
50a9bde
Fix tests
robertcoltheart Dec 10, 2023
0e1be38
Test naming
robertcoltheart Dec 10, 2023
aa16875
Updated changelog
robertcoltheart Dec 14, 2023
fca0b18
Merge branch 'main' into feature/prometheus-scope-info
robertcoltheart Dec 14, 2023
22bfa08
Fix build
robertcoltheart Dec 14, 2023
2260d8b
Merge branch 'main' into feature/prometheus-scope-info
utpilla Dec 14, 2023
03d3953
Merge branch 'main' into feature/prometheus-scope-info
utpilla Dec 14, 2023
026cfeb
Combine scope writing with hashset
robertcoltheart Dec 15, 2023
a7cc5fd
Merge branch 'feature/prometheus-scope-info' of https://github.com/ro…
robertcoltheart Dec 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Microsoft.AspNetCore.Builder.PrometheusExporterApplicationBuilderExtensions
Microsoft.AspNetCore.Builder.PrometheusExporterEndpointRouteBuilderExtensions
OpenTelemetry.Exporter.PrometheusAspNetCoreOptions
OpenTelemetry.Exporter.PrometheusAspNetCoreOptions.PrometheusAspNetCoreOptions() -> void
OpenTelemetry.Exporter.PrometheusAspNetCoreOptions.ScopeInfoEnabled.get -> bool
OpenTelemetry.Exporter.PrometheusAspNetCoreOptions.ScopeInfoEnabled.set -> void
cijothomas marked this conversation as resolved.
Show resolved Hide resolved
OpenTelemetry.Exporter.PrometheusAspNetCoreOptions.ScrapeEndpointPath.get -> string
OpenTelemetry.Exporter.PrometheusAspNetCoreOptions.ScrapeEndpointPath.set -> void
OpenTelemetry.Exporter.PrometheusAspNetCoreOptions.ScrapeResponseCacheDurationMilliseconds.get -> int
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Unreleased
* Added support for exporting otel_scope_info tags to metrics

## 1.7.0-alpha.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,14 @@
set => this.ExporterOptions.ScrapeResponseCacheDurationMilliseconds = value;
}

/// <summary>
/// Gets or sets the ability to export metric scope info. Default value: true.
/// </summary>
public bool ScopeInfoEnabled

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusAspNetCoreOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)
{
get => this.ExporterOptions.ScopeInfoEnabled;
set => this.ExporterOptions.ScopeInfoEnabled = value;
}

internal PrometheusExporterOptions ExporterOptions { get; } = new();
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,23 @@ private ExportResult OnCollect(Batch<Metric> metrics)

try
{
foreach (var metric in metrics)
if (this.exporter.ScopeInfoEnabled)
{
if (!PrometheusSerializer.CanWriteMetric(metric))
var scopes = new HashSet<string>();
robertcoltheart marked this conversation as resolved.
Show resolved Hide resolved

foreach (var metric in metrics)
{
continue;
if (PrometheusSerializer.CanWriteMetric(metric))
{
scopes.Add(metric.MeterName);
}
}

while (true)
foreach (var scope in scopes)
{
try
{
cursor = PrometheusSerializer.WriteMetric(this.buffer, cursor, metric, this.GetPrometheusMetric(metric));
break;
cursor = PrometheusSerializer.WriteScopeInfo(this.buffer, cursor, scope);
}
catch (IndexOutOfRangeException)
{
Expand All @@ -212,6 +216,30 @@ private ExportResult OnCollect(Batch<Metric> metrics)
}
}

foreach (var metric in metrics)
{
if (!PrometheusSerializer.CanWriteMetric(metric))
{
continue;
}

while (true)
{
try
{
cursor = PrometheusSerializer.WriteMetric(this.buffer, cursor, metric, this.GetPrometheusMetric(metric), this.exporter.ScopeInfoEnabled);
break;
}
catch (IndexOutOfRangeException)
{
if (!this.IncreaseBufferSize())
{
throw;
}
}
}
}

while (true)
{
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public PrometheusExporter(PrometheusExporterOptions options)
Guard.ThrowIfNull(options);

this.ScrapeResponseCacheDurationMilliseconds = options.ScrapeResponseCacheDurationMilliseconds;
this.ScopeInfoEnabled = options.ScopeInfoEnabled;

this.CollectionManager = new PrometheusCollectionManager(this);
}
Expand All @@ -63,6 +64,8 @@ internal Func<Batch<Metric>, ExportResult> OnExport

internal int ScrapeResponseCacheDurationMilliseconds { get; }

internal bool ScopeInfoEnabled { get; }

/// <inheritdoc/>
public override ExportResult Export(in Batch<Metric> metrics)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@
this.scrapeResponseCacheDurationMilliseconds = value;
}
}

/// <summary>
/// Gets or sets the ability to export metric scope info. Default value: true.
/// </summary>
public bool ScopeInfoEnabled { get; set; } = true;

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check warning on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether'

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)

Check failure on line 48 in src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusExporterOptions.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

The property's documentation summary text should begin with: 'Gets or sets a value indicating whether' (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1623.md)
}
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,31 @@ public static int WriteUnitMetadata(byte[] buffer, int cursor, PrometheusMetric
return cursor;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int WriteScopeInfo(byte[] buffer, int cursor, string scopeName)
{
if (string.IsNullOrEmpty(scopeName))
{
return cursor;
}

cursor = WriteAsciiStringNoEscape(buffer, cursor, "# TYPE otel_scope_info info");
buffer[cursor++] = ASCII_LINEFEED;

cursor = WriteAsciiStringNoEscape(buffer, cursor, "# HELP otel_scope_info Scope metadata");
buffer[cursor++] = ASCII_LINEFEED;

cursor = WriteAsciiStringNoEscape(buffer, cursor, "otel_scope_info");
buffer[cursor++] = unchecked((byte)'{');
cursor = WriteLabel(buffer, cursor, "otel_scope_name", scopeName);
buffer[cursor++] = unchecked((byte)'}');
buffer[cursor++] = unchecked((byte)' ');
buffer[cursor++] = unchecked((byte)'1');
buffer[cursor++] = ASCII_LINEFEED;

return cursor;
}

private static string MapPrometheusType(PrometheusType type)
{
return type switch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static bool CanWriteMetric(Metric metric)
return true;
}

public static int WriteMetric(byte[] buffer, int cursor, Metric metric, PrometheusMetric prometheusMetric)
public static int WriteMetric(byte[] buffer, int cursor, Metric metric, PrometheusMetric prometheusMetric, bool scopeInfoEnabled = true)
{
cursor = WriteTypeMetadata(buffer, cursor, prometheusMetric);
cursor = WriteUnitMetadata(buffer, cursor, prometheusMetric);
Expand All @@ -51,10 +51,22 @@ public static int WriteMetric(byte[] buffer, int cursor, Metric metric, Promethe
// Counter and Gauge
cursor = WriteMetricName(buffer, cursor, prometheusMetric);

if (tags.Count > 0)
if (tags.Count > 0 || scopeInfoEnabled)
{
buffer[cursor++] = unchecked((byte)'{');

if (scopeInfoEnabled)
{
cursor = WriteLabel(buffer, cursor, "otel_scope_name", metric.MeterName);
buffer[cursor++] = unchecked((byte)',');

if (!string.IsNullOrEmpty(metric.MeterVersion))
{
cursor = WriteLabel(buffer, cursor, "otel_scope_version", metric.MeterVersion);
buffer[cursor++] = unchecked((byte)',');
}
}

foreach (var tag in tags)
{
cursor = WriteLabel(buffer, cursor, tag.Key, tag.Value);
Expand Down Expand Up @@ -114,6 +126,18 @@ public static int WriteMetric(byte[] buffer, int cursor, Metric metric, Promethe
cursor = WriteMetricName(buffer, cursor, prometheusMetric);
cursor = WriteAsciiStringNoEscape(buffer, cursor, "_bucket{");

if (scopeInfoEnabled)
{
cursor = WriteLabel(buffer, cursor, "otel_scope_name", metric.MeterName);
buffer[cursor++] = unchecked((byte)',');

if (!string.IsNullOrEmpty(metric.MeterVersion))
{
cursor = WriteLabel(buffer, cursor, "otel_scope_version", metric.MeterVersion);
buffer[cursor++] = unchecked((byte)',');
}
}

foreach (var tag in tags)
{
cursor = WriteLabel(buffer, cursor, tag.Key, tag.Value);
Expand Down Expand Up @@ -145,10 +169,22 @@ public static int WriteMetric(byte[] buffer, int cursor, Metric metric, Promethe
cursor = WriteMetricName(buffer, cursor, prometheusMetric);
cursor = WriteAsciiStringNoEscape(buffer, cursor, "_sum");

if (tags.Count > 0)
if (tags.Count > 0 || scopeInfoEnabled)
{
buffer[cursor++] = unchecked((byte)'{');

if (scopeInfoEnabled)
{
cursor = WriteLabel(buffer, cursor, "otel_scope_name", metric.MeterName);
buffer[cursor++] = unchecked((byte)',');

if (!string.IsNullOrEmpty(metric.MeterVersion))
{
cursor = WriteLabel(buffer, cursor, "otel_scope_version", metric.MeterVersion);
buffer[cursor++] = unchecked((byte)',');
}
}

foreach (var tag in tags)
{
cursor = WriteLabel(buffer, cursor, tag.Key, tag.Value);
Expand All @@ -171,10 +207,22 @@ public static int WriteMetric(byte[] buffer, int cursor, Metric metric, Promethe
cursor = WriteMetricName(buffer, cursor, prometheusMetric);
cursor = WriteAsciiStringNoEscape(buffer, cursor, "_count");

if (tags.Count > 0)
if (tags.Count > 0 || scopeInfoEnabled)
{
buffer[cursor++] = unchecked((byte)'{');

if (scopeInfoEnabled)
{
cursor = WriteLabel(buffer, cursor, "otel_scope_name", metric.MeterName);
buffer[cursor++] = unchecked((byte)',');

if (!string.IsNullOrEmpty(metric.MeterVersion))
{
cursor = WriteLabel(buffer, cursor, "otel_scope_version", metric.MeterVersion);
buffer[cursor++] = unchecked((byte)',');
}
}

foreach (var tag in tags)
{
cursor = WriteLabel(buffer, cursor, tag.Key, tag.Value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,25 @@ await RunPrometheusExporterMiddlewareIntegrationTest(
registerMeterProvider: false);
}

[Fact]
public async Task PrometheusExporterMiddlewareIntegration_DisableExportScopeInfo()
{
await RunPrometheusExporterMiddlewareIntegrationTest(
"/metrics",
app => app.UseOpenTelemetryPrometheusScrapingEndpoint(),
configureOptions: o => o.ScopeInfoEnabled = false,
skipScopeInfo: true);
}

private static async Task RunPrometheusExporterMiddlewareIntegrationTest(
string path,
Action<IApplicationBuilder> configure,
Action<IServiceCollection> configureServices = null,
Action<HttpResponseMessage> validateResponse = null,
bool registerMeterProvider = true,
Action<PrometheusAspNetCoreOptions> configureOptions = null,
bool skipMetrics = false)
bool skipMetrics = false,
bool skipScopeInfo = false)
{
using var host = await new HostBuilder()
.ConfigureWebHost(webBuilder => webBuilder
Expand Down Expand Up @@ -296,14 +307,22 @@ private static async Task RunPrometheusExporterMiddlewareIntegrationTest(

string content = await response.Content.ReadAsStringAsync();

string expected = skipScopeInfo
? "# TYPE counter_double_total counter\n"
+ "counter_double_total{key1='value1',key2='value2'} 101.17 (\\d+)\n"
+ "\n"
+ "# EOF\n"
: "# TYPE otel_scope_info info\n"
+ "# HELP otel_scope_info Scope metadata\n"
+ $"otel_scope_info{{otel_scope_name='{MeterName}'}} 1\n"
+ "# TYPE counter_double_total counter\n"
+ $"counter_double_total{{otel_scope_name='{MeterName}',key1='value1',key2='value2'}} 101.17 (\\d+)\n"
+ "\n"
+ "# EOF\n";

var matches = Regex.Matches(
content,
("^"
+ "# TYPE counter_double_total counter\n"
+ "counter_double_total{key1='value1',key2='value2'} 101.17 (\\d+)\n"
+ "\n"
+ "# EOF\n"
+ "$").Replace('\'', '"'));
("^" + expected + "$").Replace('\'', '"'));

Assert.Single(matches);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,18 @@ private async Task RunPrometheusExporterHttpServerIntegrationTest(bool skipMetri
Assert.True(response.Content.Headers.Contains("Last-Modified"));
Assert.Equal("text/plain; charset=utf-8; version=0.0.4", response.Content.Headers.ContentType.ToString());

var content = await response.Content.ReadAsStringAsync();

Assert.Matches(
"^# TYPE counter_double_total counter\ncounter_double_total{key1='value1',key2='value2'} 101.17 \\d+\n\n# EOF\n$".Replace('\'', '"'),
await response.Content.ReadAsStringAsync());
("^"
+ "# TYPE otel_scope_info info\n"
+ "# HELP otel_scope_info Scope metadata\n"
+ $"otel_scope_info{{otel_scope_name='{this.meterName}'}} 1\n"
+ "# TYPE counter_double_total counter\n"
+ $"counter_double_total{{otel_scope_name='{this.meterName}',key1='value1',key2='value2'}} 101.17 \\d+\n\n"
+ "# EOF\n"
+ "$").Replace('\'', '"'),
content);
}
else
{
Expand Down
Loading
Loading