lib/opentelemetry/instrumentation/dalli/patches/server.rb in opentelemetry-instrumentation-dalli-0.23.0 vs lib/opentelemetry/instrumentation/dalli/patches/server.rb in opentelemetry-instrumentation-dalli-0.24.0
- old
+ new
@@ -12,9 +12,10 @@
module Server
def request(op, *args) # rubocop:disable Naming/MethodParameterName
operation = Utils.opname(op, multi?)
attributes = {
'db.system' => 'memcached',
+ 'db.operation' => operation,
'net.peer.name' => hostname,
'net.peer.port' => port
}
if config[:db_statement] == :include
attributes['db.statement'] = Utils.format_command(operation, args)