@@ -16,6 +16,7 @@ public MetricStreamIdentity(Instrument instrument, MetricStreamConfiguration? me
1616 this . MeterName = instrument . Meter . Name ;
1717 this . MeterVersion = instrument . Meter . Version ?? string . Empty ;
1818 this . MeterTags = instrument . Meter . Tags != null ? new Tags ( instrument . Meter . Tags . ToArray ( ) ) : null ;
19+ this . MeterSchemaUrl = instrument . Meter . TelemetrySchemaUrl ?? string . Empty ;
1920 this . InstrumentName = metricStreamConfiguration ? . Name ?? instrument . Name ;
2021 this . Unit = instrument . Unit ?? string . Empty ;
2122 this . Description = metricStreamConfiguration ? . Description ?? instrument . Description ?? string . Empty ;
@@ -33,6 +34,7 @@ public MetricStreamIdentity(Instrument instrument, MetricStreamConfiguration? me
3334 hashCode . Add ( this . InstrumentType ) ;
3435 hashCode . Add ( this . MeterName ) ;
3536 hashCode . Add ( this . MeterVersion ) ;
37+ hashCode . Add ( this . MeterSchemaUrl ) ;
3638 hashCode . Add ( this . MeterTags ) ;
3739 hashCode . Add ( this . InstrumentName ) ;
3840 hashCode . Add ( this . HistogramRecordMinMax ) ;
@@ -65,6 +67,7 @@ public MetricStreamIdentity(Instrument instrument, MetricStreamConfiguration? me
6567 hash = ( hash * 31 ) + this . InstrumentType . GetHashCode ( ) ;
6668 hash = ( hash * 31 ) + this . MeterName . GetHashCode ( ) ;
6769 hash = ( hash * 31 ) + this . MeterVersion . GetHashCode ( ) ;
70+ hash = ( hash * 31 ) + this . MeterSchemaUrl . GetHashCode ( ) ;
6871 hash = ( hash * 31 ) + this . MeterTags ? . GetHashCode ( ) ?? 0 ;
6972 hash = ( hash * 31 ) + this . InstrumentName . GetHashCode ( ) ;
7073 hash = ( hash * 31 ) + this . HistogramRecordMinMax . GetHashCode ( ) ;
@@ -92,6 +95,8 @@ public MetricStreamIdentity(Instrument instrument, MetricStreamConfiguration? me
9295
9396 public string MeterVersion { get ; }
9497
98+ public string MeterSchemaUrl { get ; }
99+
95100 public Tags ? MeterTags { get ; }
96101
97102 public string InstrumentName { get ; }
@@ -138,6 +143,7 @@ public bool Equals(MetricStreamIdentity other)
138143 return this . InstrumentType == other . InstrumentType
139144 && this . MeterName == other . MeterName
140145 && this . MeterVersion == other . MeterVersion
146+ && this . MeterSchemaUrl == other . MeterSchemaUrl
141147 && this . InstrumentName == other . InstrumentName
142148 && this . Unit == other . Unit
143149 && this . Description == other . Description
0 commit comments