Skip to content

Commit 8fbf440

Browse files
fix errorsTotal
1 parent abfda32 commit 8fbf440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slo/src/AdoNet/SloTableContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class SloTableContext : SloTableContext<YdbDataSource>
1717
var errorsTotal = (Counter)context["errorsTotal"];
1818

1919
Logger.LogWarning(e, "Failed read / write operation");
20-
errorsTotal?.WithLabels(((YdbException)e).Code.StatusName(), "retried").Inc();
20+
errorsTotal?.WithLabels(((YdbException)e).Code.StatusName()).Inc();
2121
});
2222

2323
protected override string Job => "AdoNet";
@@ -66,7 +66,7 @@ PRIMARY KEY (Guid, Id)
6666
var ydbCommand = new YdbCommand(ydbConnection)
6767
{
6868
CommandText = $"""
69-
INSERT INTO `{SloTable.Name}` (Guid, Id, PayloadStr, PayloadDouble, PayloadTimestamp)
69+
UPSERT INTO `{SloTable.Name}` (Guid, Id, PayloadStr, PayloadDouble, PayloadTimestamp)
7070
VALUES (@Guid, @Id, @PayloadStr, @PayloadDouble, @PayloadTimestamp)
7171
""",
7272
CommandTimeout = writeTimeout,

0 commit comments

Comments
 (0)