text: #include "server/config/http/dynamo.h"
  
  #include <string>
  
  #include "envoy/registry/registry.h"
  
  #include "common/dynamo/dynamo_filter.h"
  
  namespace Envoy {
  namespace Server {
  namespace Configuration {
  
  HttpFilterFactoryCb DynamoFilterConfig::createFilterFactory(const Json::Object&,
                                                              const std::string& stat_prefix,
                                                              FactoryContext& context) {
    return [&context, stat_prefix](Http::FilterChainFactoryCallbacks& callbacks) -> void {
      callbacks.addStreamFilter(Http::StreamFilterSharedPtr{
          new Dynamo::DynamoFilter(context.runtime(), stat_prefix, context.scope())});
    };
  }
  
  /**
   * Static registration for the http dynamodb filter. @see RegisterFactory.
   */
  static Registry::RegisterFactory<DynamoFilterConfig, NamedHttpFilterConfigFactory> register_;
  
  } // namespace Configuration
  } // namespace Server
  } // namespace Envoy
  