File tree Expand file tree Collapse file tree
src/FirebirdSql.Data.FirebirdClient Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33using System . Diagnostics ;
44using System . Diagnostics . Metrics ;
55using System . Linq ;
6+ using System . Reflection ;
67using FirebirdSql . Data . FirebirdClient ;
78
89namespace FirebirdSql . Data . Metrics
@@ -14,7 +15,9 @@ internal static class FbMetricsStore
1415 private const string ConnectionStateIdleValue = "idle" ;
1516 private const string ConnectionStateUsedValue = "used" ;
1617
17- internal static readonly Meter Source = new ( "FirebirdSql.Data" , "1.0.0" ) ;
18+ static readonly string Version = typeof ( FbMetricsStore ) . Assembly . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ? . InformationalVersion ?? "0.0.0" ;
19+
20+ internal static readonly Meter Source = new ( "FirebirdSql.Data" , Version ) ;
1821
1922 static readonly Histogram < double > OperationDuration ;
2023 static readonly Histogram < double > ConnectionCreateTime ;
Original file line number Diff line number Diff line change 22using System . ComponentModel ;
33using System . Data ;
44using System . Diagnostics ;
5+ using System . Reflection ;
56using FirebirdSql . Data . FirebirdClient ;
67using FirebirdSql . Data . Logging ;
78
89namespace FirebirdSql . Data . Trace
910{
1011 internal static class FbActivitySource
1112 {
12- internal static readonly ActivitySource Source = new ( "FirebirdSql.Data" , "1.0.0" ) ;
13+ static readonly string Version = typeof ( FbActivitySource ) . Assembly . GetCustomAttribute < AssemblyInformationalVersionAttribute > ( ) ? . InformationalVersion ?? "0.0.0" ;
14+
15+ internal static readonly ActivitySource Source = new ( "FirebirdSql.Data" , Version ) ;
1316
1417 internal static Activity CommandStart ( FbCommand command )
1518 {
You can’t perform that action at this time.
0 commit comments