Skip to content

Commit

Permalink
fix: Format gat commands
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlaurin committed Dec 19, 2024
1 parent b1ea804 commit 97264dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module Utils
'multi_replace' => 'replaceq',
'multi_delete' => 'deleteq',
'touch' => 'touch'
'gat' => 'gat'
# 'sasl_authentication' => 'auth_negotiation',
# 'sasl_authentication' => 'auth_request',
}.freeze
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@
_(span.name).must_equal 'set'
_(span.attributes['db.statement']).must_equal 'set ?'
end

it 'supports gat' do
dalli.gat('foo')

_(exporter.finished_spans.size).must_equal 1
_(span.name).must_equal 'gat'
_(span.attributes['db.statement']).must_equal 'gat foo 0'
end
end

# Dalli 3.x has different behavior than 2.x versions and attempts to retry on network errors
Expand Down

0 comments on commit 97264dd

Please sign in to comment.