content: /*
   * Copyright The OpenTelemetry Authors
   * SPDX-License-Identifier: Apache-2.0
   */
  
  package io.opentelemetry.javaagent.instrumentation.spymemcached;
  
  import io.opentelemetry.instrumentation.api.incubator.semconv.db.DbClientAttributesGetter;
  import javax.annotation.Nullable;
  
  public class SpymemcachedAttributesGetter
      implements DbClientAttributesGetter<SpymemcachedRequest, Object> {
  
    @Override
    public String getDbSystem(SpymemcachedRequest spymemcachedRequest) {
      return "memcached";
    }
  
    @Deprecated
    @Override
    @Nullable
    public String getUser(SpymemcachedRequest spymemcachedRequest) {
      return null;
    }
  
    @Override
    @Nullable
    public String getDbNamespace(SpymemcachedRequest spymemcachedRequest) {
      return null;
    }
  
    @Deprecated
    @Override
    @Nullable
    public String getConnectionString(SpymemcachedRequest spymemcachedRequest) {
      return null;
    }
  
    @Override
    @Nullable
    public String getDbQueryText(SpymemcachedRequest spymemcachedRequest) {
      return null;
    }
  
    @Override
    @Nullable
    public String getDbOperationName(SpymemcachedRequest spymemcachedRequest) {
      return spymemcachedRequest.dbOperation();
    }
  }
  