Skip to content

Commit

Permalink
Renames to match the diagnostics changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkeirstead committed Nov 28, 2023
1 parent d01a126 commit 063fc07
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected override async Task SerializeAsync(ICounterPayload counter)
}
else if (counter is CounterEndedPayload)
{
Logger.CounterEndedPayload(counter.CounterInfo.CounterName);
Logger.CounterEndedPayload(counter.CounterMetadata.CounterName);

Check failure on line 46 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L46

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(46,52): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 46 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L46

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(46,52): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 46 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L46

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(46,52): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 46 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L46

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(46,52): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 46 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L46

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(46,52): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 46 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L46

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(46,52): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 46 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L46

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(46,52): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)
return;
}
else if (!counter.EventType.IsValuePublishedEvent())
Expand All @@ -70,16 +70,16 @@ protected override async Task SerializeAsync(ICounterPayload counter)
Quantile quantile = aggregatePercentilePayload.Quantiles[i];

SerializeCounterValues(counter.Timestamp,
counter.CounterInfo.ProviderName,
counter.CounterInfo.CounterName,
counter.CounterMetadata.ProviderName,

Check failure on line 73 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L73

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(73,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 73 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L73

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(73,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 73 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L73

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(73,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 73 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L73

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(73,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 73 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L73

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(73,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 73 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L73

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(73,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 73 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L73

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(73,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)
counter.CounterMetadata.CounterName,

Check failure on line 74 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L74

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(74,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 74 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L74

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(74,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 74 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L74

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(74,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 74 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L74

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(74,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 74 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L74

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(74,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 74 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L74

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(74,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 74 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L74

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(74,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)
counter.DisplayName,
counter.Unit,
counter.CounterType.ToString(),
CounterUtilities.AppendPercentile(counter.Metadata, quantile.Percentage),
CounterUtilities.AppendPercentile(counter.ValueTags, quantile.Percentage),

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(78,67): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'ValueTags' and no accessible extension method 'ValueTags' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(78,67): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'ValueTags' and no accessible extension method 'ValueTags' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(78,67): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'ValueTags' and no accessible extension method 'ValueTags' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(78,67): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'ValueTags' and no accessible extension method 'ValueTags' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(78,67): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'ValueTags' and no accessible extension method 'ValueTags' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(78,67): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'ValueTags' and no accessible extension method 'ValueTags' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(78,67): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'ValueTags' and no accessible extension method 'ValueTags' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)
quantile.Value,
counter.CounterInfo.MeterTags,
counter.CounterInfo.InstrumentTags,
counter.CounterInfo.ScopeHash);
counter.CounterMetadata.MeterTags,

Check failure on line 80 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L80

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(80,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 80 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L80

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(80,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 80 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L80

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(80,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 80 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl arm64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L80

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(80,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 80 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L80

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(80,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 80 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L80

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(80,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 80 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux_Musl x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs#L80

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/JsonCounterLogger.cs(80,33): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)
counter.CounterMetadata.InstrumentTags,
counter.CounterMetadata.ScopeHash);

if (i < aggregatePercentilePayload.Quantiles.Length - 1)
{
Expand All @@ -93,16 +93,16 @@ protected override async Task SerializeAsync(ICounterPayload counter)
_bufferWriter.Clear();

SerializeCounterValues(counter.Timestamp,
counter.CounterInfo.ProviderName,
counter.CounterInfo.CounterName,
counter.CounterMetadata.ProviderName,
counter.CounterMetadata.CounterName,
counter.DisplayName,
counter.Unit,
counter.CounterType.ToString(),
counter.Metadata,
counter.ValueTags,
counter.Value,
counter.CounterInfo.MeterTags,
counter.CounterInfo.InstrumentTags,
counter.CounterInfo.ScopeHash);
counter.CounterMetadata.MeterTags,
counter.CounterMetadata.InstrumentTags,
counter.CounterMetadata.ScopeHash);
}
await _stream.WriteAsync(_bufferWriter.WrittenMemory);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public MetricKey(ICounterPayload metric)
public override int GetHashCode()
{
HashCode code = new HashCode();
code.Add(_metric.CounterInfo.ProviderName);
code.Add(_metric.CounterInfo.CounterName);
code.Add(_metric.CounterMetadata.ProviderName);

Check failure on line 33 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L33

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(33,34): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)
code.Add(_metric.CounterMetadata.CounterName);

Check failure on line 34 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L34

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(34,34): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)
return code.ToHashCode();
}

Expand Down Expand Up @@ -73,9 +73,9 @@ public void AddMetric(ICounterPayload metric)
//Do not accept CounterEnded payloads.
if (metric is CounterEndedPayload counterEnded)
{
if (_observedEndedCounters.Add((counterEnded.CounterInfo.ProviderName, counterEnded.CounterInfo.CounterName)))
if (_observedEndedCounters.Add((counterEnded.CounterMetadata.ProviderName, counterEnded.CounterMetadata.CounterName)))

Check failure on line 76 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L76

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(76,62): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 76 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L76

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(76,105): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 76 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L76

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(76,62): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 76 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L76

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(76,105): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 76 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L76

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(76,62): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 76 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L76

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(76,105): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)
{
_logger.CounterEndedPayload(counterEnded.CounterInfo.CounterName);
_logger.CounterEndedPayload(counterEnded.CounterMetadata.CounterName);

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(78,62): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build Linux x64 Debug)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(78,62): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 78 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L78

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(78,62): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'CounterEndedPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'CounterEndedPayload' could be found (are you missing a using directive or an assembly reference?)
}
return;
}
Expand Down Expand Up @@ -137,7 +137,7 @@ public async Task SnapshotMetrics(Stream outputStream, CancellationToken token)
{
ICounterPayload metricInfo = metricGroup.Value.First();

string metricName = PrometheusDataModel.GetPrometheusNormalizedName(metricInfo.CounterInfo.ProviderName, metricInfo.CounterInfo.CounterName, metricInfo.Unit);
string metricName = PrometheusDataModel.GetPrometheusNormalizedName(metricInfo.CounterMetadata.ProviderName, metricInfo.CounterMetadata.CounterName, metricInfo.Unit);

Check failure on line 140 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L140

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(140,96): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 140 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci (Build and Test Build MacOS x64 Release)

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L140

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(140,137): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 140 in src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs

View check run for this annotation

Azure Pipelines / dotnet-monitor-ci

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs#L140

src/Microsoft.Diagnostics.Monitoring.WebApi/Metrics/MetricsStore.cs(140,96): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ICounterPayload' does not contain a definition for 'CounterMetadata' and no accessible extension method 'CounterMetadata' accepting a first argument of type 'ICounterPayload' could be found (are you missing a using directive or an assembly reference?)

await WriteMetricHeader(metricInfo, writer, metricName);

Expand Down Expand Up @@ -243,7 +243,7 @@ private static async Task WriteMetricDetails(

private static bool CompareMetrics(ICounterPayload first, ICounterPayload second)
{
return string.Equals(first.CounterInfo.CounterName, second.CounterInfo.CounterName);
return string.Equals(first.CounterMetadata.CounterName, second.CounterMetadata.CounterName);
}

public void Clear()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task HistogramFormat_Test()
{
List<ICounterPayload> payload = new();

CachedCounterInfo counterInfo = new CachedCounterInfo(MeterName, InstrumentName, null, null, null);
CounterMetadata counterInfo = new CounterMetadata(MeterName, InstrumentName, null, null, null);

payload.Add(new AggregatePercentilePayload(counterInfo, "DisplayName", string.Empty, string.Empty,
new Quantile[] { new Quantile(0.5, Value1), new Quantile(0.95, Value2), new Quantile(0.99, Value3) },
Expand All @@ -53,7 +53,7 @@ public async Task HistogramFormat_Test()
using MemoryStream stream = await GetMetrics(payload);
List<string> lines = ReadStream(stream);

string metricName = $"{MeterName.ToLowerInvariant()}_{payload[0].CounterInfo.CounterName}";
string metricName = $"{MeterName.ToLowerInvariant()}_{payload[0].CounterMetadata.CounterName}";

const string quantile_50 = "{quantile=\"0.5\"}";
const string quantile_95 = "{quantile=\"0.95\"}";
Expand All @@ -70,15 +70,15 @@ public async Task HistogramFormat_Test()
[Fact]
public async Task GaugeFormat_Test()
{
CachedCounterInfo counterInfo = new CachedCounterInfo(MeterName, InstrumentName, null, null, null);
CounterMetadata counterInfo = new CounterMetadata(MeterName, InstrumentName, null, null, null);

ICounterPayload payload = new GaugePayload(counterInfo, "DisplayName", "", null, Value1, Timestamp);

MemoryStream stream = await GetMetrics(new() { payload });

List<string> lines = ReadStream(stream);

string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterInfo.CounterName}";
string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterMetadata.CounterName}";

Assert.Equal(3, lines.Count);
Assert.Equal(FormattableString.Invariant($"# HELP {metricName}{payload.Unit} {payload.DisplayName}"), lines[0]);
Expand All @@ -89,15 +89,15 @@ public async Task GaugeFormat_Test()
[Fact]
public async Task CounterFormat_Test()
{
CachedCounterInfo counterInfo = new CachedCounterInfo(MeterName, InstrumentName, null, null, null);
CounterMetadata counterInfo = new CounterMetadata(MeterName, InstrumentName, null, null, null);

ICounterPayload payload = new RatePayload(counterInfo, "DisplayName", "", null, Value1, IntervalSeconds, Timestamp);

MemoryStream stream = await GetMetrics(new() { payload });

List<string> lines = ReadStream(stream);

string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterInfo.CounterName}";
string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterMetadata.CounterName}";

Assert.Equal(3, lines.Count);
Assert.Equal($"# HELP {metricName}{payload.Unit} {payload.DisplayName}", lines[0]);
Expand All @@ -112,15 +112,15 @@ public async Task CounterFormat_Test_Tags()
string instrumentTags = "InstrumentTagKey=InstrumentTagValue,InstrumentTagKey2=InstrumentTagValue2";
string scopeHash = "123";

CachedCounterInfo counterInfo = new CachedCounterInfo(MeterName, InstrumentName, meterTags, instrumentTags, scopeHash);
CounterMetadata counterInfo = new CounterMetadata(MeterName, InstrumentName, meterTags, instrumentTags, scopeHash);

ICounterPayload payload = new RatePayload(counterInfo, "DisplayName", "", null, Value1, IntervalSeconds, Timestamp);

MemoryStream stream = await GetMetrics(new() { payload });

List<string> lines = ReadStream(stream);

string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterInfo.CounterName}";
string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterMetadata.CounterName}";
string metricTags = "{MeterTagKey=\"MeterTagValue\", MeterTagKey2=\"MeterTagValue2\", InstrumentTagKey=\"InstrumentTagValue\", InstrumentTagKey2=\"InstrumentTagValue2\"}";

Assert.Equal(3, lines.Count);
Expand All @@ -132,15 +132,15 @@ public async Task CounterFormat_Test_Tags()
[Fact]
public async Task UpDownCounterFormat_Test()
{
CachedCounterInfo counterInfo = new CachedCounterInfo(MeterName, InstrumentName, null, null, null);
CounterMetadata counterInfo = new CounterMetadata(MeterName, InstrumentName, null, null, null);

ICounterPayload payload = new UpDownCounterPayload(counterInfo, "DisplayName", "", null, Value1, Timestamp);

MemoryStream stream = await GetMetrics(new() { payload });

List<string> lines = ReadStream(stream);

string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterInfo.CounterName}";
string metricName = $"{MeterName.ToLowerInvariant()}_{payload.CounterMetadata.CounterName}";

Assert.Equal(3, lines.Count);
Assert.Equal(FormattableString.Invariant($"# HELP {metricName}{payload.Unit} {payload.DisplayName}"), lines[0]);
Expand Down

0 comments on commit 063fc07

Please sign in to comment.