Skip to content

Commit

Permalink
Update RedisMetrics.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Coelho04 authored and tiagodaraujo committed Nov 6, 2024
1 parent b0ae03b commit 2fa5346
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ namespace OpenTelemetry.Instrumentation.StackExchangeRedis.Implementation;

internal class RedisMetrics : IDisposable
{
internal const string DurationMetricName = "db.client.operation.duration";

internal static readonly Assembly Assembly = typeof(StackExchangeRedisInstrumentation).Assembly;
internal static readonly AssemblyName AssemblyName = Assembly.GetName();
internal static readonly string InstrumentationName = AssemblyName.Name!;
Expand All @@ -23,7 +21,7 @@ public RedisMetrics()
this.meter = new Meter(InstrumentationName, InstrumentationVersion);

this.DurationHistogram = this.meter.CreateHistogram<double>(
DurationMetricName,
"db.client.operation.duration",
unit: "s",
description: "Duration of database client operations.");
}
Expand Down

0 comments on commit 2fa5346

Please sign in to comment.