Skip to content

Commit

Permalink
Update OTEL attribute name for replication lag
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Mathews <[email protected]>
  • Loading branch information
kevin-dp and KyleAMathews authored Nov 26, 2024
1 parent ab470a6 commit 43b9054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sync-service/lib/electric/shapes/consumer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,6 @@ defmodule Electric.Shapes.Consumer do
now = DateTime.utc_now()
lag = Kernel.max(0, DateTime.diff(now, commit_timestamp, :millisecond))

OpenTelemetry.add_span_attributes(lag: lag)
OpenTelemetry.add_span_attributes(replication_lag: lag)
end
end

0 comments on commit 43b9054

Please sign in to comment.