Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created March 3, 2024 20:41
Show Gist options
  • Save coderberry/86bd6ba30e8abf3c05bfe09cc7a8a77d to your computer and use it in GitHub Desktop.
Save coderberry/86bd6ba30e8abf3c05bfe09cc7a8a77d to your computer and use it in GitHub Desktop.
Example AppMap configuration
{
"name": "appmap-example",
"appmap_dir": "tmp/appmap",
"packages": [
{
"name": "app",
"path": "app",
"handler_class": "AppMap::Handler::FunctionHandler",
"shallow": false
},
{
"name": "lib",
"path": "lib",
"handler_class": "AppMap::Handler::FunctionHandler",
"shallow": false
}
],
"swagger_config": {
"project_name": null,
"project_version": "1.0",
"output_dir": "swagger",
"description": "Generate Swagger from AppMaps"
},
"depends_config": {
"base_dir": null,
"base_branches": [
"remotes/origin/main",
"remotes/origin/master"
],
"test_file_patterns": [
"spec/**/*_spec.rb",
"test/**/*_test.rb"
],
"dependent_tasks": [
"swagger"
],
"description": "Bring AppMaps up to date with local file modifications, and updated derived data such as Swagger files",
"rspec_environment_method": "AppMap::Depends.test_env",
"minitest_environment_method": "AppMap::Depends.test_env",
"rspec_select_tests_method": "AppMap::Depends.select_rspec_tests",
"minitest_select_tests_method": "AppMap::Depends.select_minitest_tests",
"rspec_test_command_method": "AppMap::Depends.rspec_test_command",
"minitest_test_command_method": "AppMap::Depends.minitest_test_command"
},
"hook_paths": [
"app",
"lib",
"/Users/eberry/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/actionpack-7.1.3.2",
"/Users/eberry/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/actionview-7.1.3.2",
"/Users/eberry/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/activejob-7.1.3.2",
"/Users/eberry/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/rails-7.1.3.2",
"/Users/eberry/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/railties-7.1.3.2",
"/Users/eberry/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/sprockets-4.2.1"
],
"exclude": [],
"functions": [],
"builtin_hooks": {
"ActiveSupport::Callbacks::CallbackSequence": [
{
"package": "activesupport",
"method_names": [
"invoke_before"
]
},
{
"package": "activesupport",
"method_names": [
"invoke_after"
]
}
],
"ActiveSupport::SecurityUtils": [
{
"package": "activesupport",
"method_names": [
"secure_compare"
]
}
],
"ActiveSupport": [
{
"package": "activesupport",
"method_names": [
"run_load_hooks"
]
}
],
"ActiveSupport::MessageEncryptor": [
{
"package": "activesupport",
"method_names": [
"encrypt_and_sign"
]
},
{
"package": "activesupport",
"method_names": [
"decrypt_and_verify"
]
}
],
"JSON::Ext::Parser": [
{
"package": "json",
"method_names": [
"parse"
]
}
],
"JSON::Ext::Generator::State": [
{
"package": "json",
"method_names": [
"generate"
]
}
],
"Logger::LogDevice": [
{
"package": "logger",
"method_names": [
"write"
]
}
],
"Net::HTTP": [
{
"package": "net/http",
"method_names": [
"request"
]
}
],
"Open3": [
{
"package": "open3",
"method_names": [
"capture2"
]
},
{
"package": "open3",
"method_names": [
"capture2e"
]
},
{
"package": "open3",
"method_names": [
"capture3"
]
},
{
"package": "open3",
"method_names": [
"pipeline"
]
},
{
"package": "open3",
"method_names": [
"pipeline_r"
]
},
{
"package": "open3",
"method_names": [
"pipeline_rw"
]
},
{
"package": "open3",
"method_names": [
"pipeline_start"
]
},
{
"package": "open3",
"method_names": [
"pipeline_w"
]
},
{
"package": "open3",
"method_names": [
"popen2"
]
},
{
"package": "open3",
"method_names": [
"popen2e"
]
},
{
"package": "open3",
"method_names": [
"popen3"
]
}
],
"OpenSSL::PKey::PKey": [
{
"package": "openssl",
"method_names": [
"sign"
]
}
],
"OpenSSL::X509::Request": [
{
"package": "openssl",
"method_names": [
"sign"
]
},
{
"package": "openssl",
"method_names": [
"verify"
]
}
],
"OpenSSL::X509::Certificate": [
{
"package": "openssl",
"method_names": [
"sign"
]
}
],
"OpenSSL::PKCS5": [
{
"package": "openssl",
"method_names": [
"pbkdf2_hmac"
]
},
{
"package": "openssl",
"method_names": [
"pbkdf2_hmac_sha1"
]
}
],
"OpenSSL::Cipher": [
{
"package": "openssl",
"method_names": [
"encrypt"
]
},
{
"package": "openssl",
"method_names": [
"decrypt"
]
},
{
"package": "openssl",
"method_names": [
"auth_data="
]
},
{
"package": "openssl",
"method_names": [
"auth_tag="
]
},
{
"package": "openssl",
"method_names": [
"auth_tag_len="
]
},
{
"package": "openssl",
"method_names": [
"ccm_data_len="
]
},
{
"package": "openssl",
"method_names": [
"iv="
]
},
{
"package": "openssl",
"method_names": [
"iv_len="
]
},
{
"package": "openssl",
"method_names": [
"key="
]
},
{
"package": "openssl",
"method_names": [
"key_len="
]
},
{
"package": "openssl",
"method_names": [
"padding="
]
},
{
"package": "openssl",
"method_names": [
"final"
]
},
{
"package": "openssl",
"method_names": [
"random_iv"
]
},
{
"package": "openssl",
"method_names": [
"random_key"
]
},
{
"package": "openssl",
"method_names": [
"reset"
]
},
{
"package": "openssl",
"method_names": [
"update"
]
}
],
"OpenSSL::Random": [
{
"package": "openssl",
"method_names": [
"random_bytes"
]
},
{
"package": "openssl",
"method_names": [
"add"
]
},
{
"package": "openssl",
"method_names": [
"seed"
]
}
],
"Psych": [
{
"package": "psych",
"method_names": [
"parse"
]
},
{
"package": "psych",
"method_names": [
"parse_stream"
]
},
{
"package": "psych",
"method_names": [
"load"
]
},
{
"package": "psych",
"method_names": [
"load_stream"
]
},
{
"package": "psych",
"method_names": [
"safe_load"
]
},
{
"package": "psych",
"method_names": [
"dump"
]
},
{
"package": "psych",
"method_names": [
"dump_stream"
]
}
],
"Marshal": [
{
"package": "ruby",
"method_names": [
"load"
]
},
{
"package": "ruby",
"method_names": [
"restore"
]
},
{
"package": "ruby",
"method_names": [
"dump"
]
}
],
"Array": [
{
"package": "ruby",
"method_names": [
"pack"
]
}
],
"String": [
{
"package": "ruby",
"method_names": [
"unpack"
]
},
{
"package": "ruby",
"method_names": [
"unpack1"
]
}
],
"Kernel": [
{
"package": "ruby",
"method_names": [
"eval"
]
},
{
"package": "ruby",
"method_names": [
"exec"
]
},
{
"package": "ruby",
"method_names": [
"spawn"
]
},
{
"package": "ruby",
"method_names": [
"syscall"
]
},
{
"package": "ruby",
"method_names": [
"system"
]
}
],
"IO": [
{
"package": "ruby",
"method_names": [
"popen"
]
}
],
"Process": [
{
"package": "ruby",
"method_names": [
"exec"
]
},
{
"package": "ruby",
"method_names": [
"spawn"
]
}
],
"ERB": [
{
"package": "ruby",
"method_names": [
"result"
]
}
]
},
"gem_hooks": {
"ActionDispatch::Request::Session": [
{
"package": "actionpack",
"method_names": [
"[]"
]
},
{
"package": "actionpack",
"method_names": [
"dig"
]
},
{
"package": "actionpack",
"method_names": [
"values"
]
},
{
"package": "actionpack",
"method_names": [
"fetch"
]
},
{
"package": "actionpack",
"method_names": [
"destroy"
]
},
{
"package": "actionpack",
"method_names": [
"[]="
]
},
{
"package": "actionpack",
"method_names": [
"update"
]
},
{
"package": "actionpack",
"method_names": [
"delete"
]
},
{
"package": "actionpack",
"method_names": [
"merge"
]
},
{
"package": "actionpack",
"method_names": [
"clear"
]
}
],
"ActionDispatch::Cookies::CookieJar": [
{
"package": "actionpack",
"method_names": [
"[]"
]
},
{
"package": "actionpack",
"method_names": [
"fetch"
]
},
{
"package": "actionpack",
"method_names": [
"[]="
]
},
{
"package": "actionpack",
"method_names": [
"update"
]
},
{
"package": "actionpack",
"method_names": [
"delete"
]
},
{
"package": "actionpack",
"method_names": [
"recycle!"
]
},
{
"package": "actionpack",
"method_names": [
"clear"
]
}
],
"ActionDispatch::Cookies::EncryptedCookieJar": [
{
"package": "actionpack",
"method_names": [
"[]="
]
},
{
"package": "actionpack",
"method_names": [
"clear"
]
},
{
"package": "actionpack",
"method_names": [
"update"
]
},
{
"package": "actionpack",
"method_names": [
"delete"
]
},
{
"package": "actionpack",
"method_names": [
"recycle"
]
}
],
"ActionController::Instrumentation": [
{
"package": "actionpack",
"method_names": [
"process_action"
]
},
{
"package": "actionpack",
"method_names": [
"send_file"
]
},
{
"package": "actionpack",
"method_names": [
"send_data"
]
},
{
"package": "actionpack",
"method_names": [
"redirect_to"
]
}
],
"AbstractController::Rendering": [
{
"package": "actionpack",
"method_names": [
"render_to_body"
]
}
],
"ActionController::Renderers": [
{
"package": "actionpack",
"method_names": [
"render_to_body"
]
}
],
"ActionDispatch::Integration::Runner": [
{
"package": "actionpack",
"method_names": [
"before_setup"
]
}
],
"ActionDispatch::Cookies::EncryptedKeyRotatingCookieJar": [
{
"package": "actionpack",
"method_names": [
"commit"
]
}
],
"ActionView::Renderer": [
{
"package": "actionview",
"method_names": [
"render"
]
}
],
"ActionView::TemplateRenderer": [
{
"package": "actionview",
"method_names": [
"render"
]
}
],
"ActionView::PartialRenderer": [
{
"package": "actionview",
"method_names": [
"render"
]
}
],
"ActionView::Resolver": [
{
"package": "actionview",
"method_names": [
"find_all"
]
},
{
"package": "actionview",
"method_names": [
"find_all_anywhere"
]
}
],
"ActionView::Helpers::SanitizeHelper": [
{
"package": "actionview",
"method_names": [
"sanitize"
]
}
],
"ActiveJob::Enqueuing": [
{
"package": "activejob",
"method_names": [
"enqueue"
]
}
],
"ActiveJob::Execution": [
{
"package": "activejob",
"method_names": [
"perform_now"
]
}
],
"Rails::Application": [
{
"package": "rails",
"method_names": [
"config_for"
]
}
],
"Rails::Application::Configuration": [
{
"package": "railties",
"method_names": [
"database_configuration"
]
}
],
"Sprockets::EncodingUtils": [
{
"package": "sprockets",
"method_names": [
"unmarshaled_deflated"
]
}
],
"ActionDispatch::HostAuthorization::Permissions": [],
"ActionDispatch::HostAuthorization::DefaultResponseApp": [],
"ActionDispatch::HostAuthorization": [],
"ActionDispatch": [],
"Rails": [],
"Rails::Application::Finisher::MonitorHook": [],
"Rails::Application::Finisher::InterlockHook": [],
"ActionDispatch::Http::URL": [],
"ActionDispatch::ExceptionWrapper::SourceMapLocation": [],
"ActionDispatch::ExceptionWrapper": [],
"ActionDispatch::RequestCookieMethods": [],
"ActionDispatch::Cookies::ChainedCookieJars": [],
"ActionDispatch::Cookies::AbstractCookieJar": [],
"ActionDispatch::Cookies::SerializedCookieJars": [],
"ActionDispatch::Cookies": [],
"ActionDispatch::Routing::Redirect": [],
"ActionDispatch::Routing::PathRedirect": [],
"ActionDispatch::Routing::OptionRedirect": [],
"ActionDispatch::Routing::Redirection": [],
"ActionDispatch::Routing::Mapper::Constraints": [],
"ActionDispatch::Routing::Mapper::Mapping": [],
"ActionDispatch::Routing::Mapper::Base": [],
"ActionDispatch::Routing::Mapper::HttpHelpers": [],
"ActionDispatch::Routing::Mapper::Scoping": [],
"ActionDispatch::Routing::Mapper::Resources::Resource": [],
"ActionDispatch::Routing::Mapper::Resources::SingletonResource": [],
"ActionDispatch::Routing::Mapper::Resources": [],
"ActionDispatch::Routing::Mapper::Concerns": [],
"ActionDispatch::Routing::Mapper::CustomUrls": [],
"ActionDispatch::Routing::Mapper::Scope": [],
"ActionDispatch::Routing::Mapper": [],
"ActionController::Helpers": [],
"AbstractController::Helpers::Resolution": [],
"AbstractController::Helpers::ClassMethods": [],
"AbstractController::Helpers": [],
"AbstractController": [],
"ActionController::Helpers::ClassMethods": [],
"ActionController": [],
"ActionDispatch::Callbacks": [],
"Rails::Rack::Logger": [],
"ActionController::ApiRendering": [],
"ActionView::ViewPaths::ClassMethods": [],
"ActionView::ViewPaths": [],
"ActionView": [],
"ActionView::I18nProxy": [],
"ActionView::Rendering::ClassMethods": [],
"ActionView::Rendering": [],
"ActionDispatch::Executor": [],
"ActionController::Instrumentation::ClassMethods": [],
"ActionDispatch::Routing::RouteWrapper": [],
"ActionDispatch::Routing::RoutesInspector": [],
"ActionDispatch::Routing::ConsoleFormatter::Base": [],
"ActionDispatch::Routing::ConsoleFormatter::Sheet": [],
"ActionDispatch::Routing::ConsoleFormatter::Expanded": [],
"ActionDispatch::Routing::ConsoleFormatter::Unused": [],
"ActionDispatch::Routing::HtmlTableFormatter": [],
"ActionDispatch::DebugExceptions": [],
"ActionDispatch::Http::Headers": [],
"ActionDispatch::Http::Cache::Request": [],
"ActionDispatch::Http::Cache::Response": [],
"ActionDispatch::Http::Parameters::ClassMethods": [],
"ActionDispatch::Http::Parameters": [],
"ActionDispatch::Http::MimeNegotiation": [],
"ActionDispatch::Http::FilterParameters": [],
"ActionDispatch::Request": [],
"ActionDispatch::ContentSecurityPolicy::Middleware": [],
"ActionDispatch::ContentSecurityPolicy::Request": [],
"ActionDispatch::ContentSecurityPolicy": [],
"ActionDispatch::PermissionsPolicy::Middleware": [],
"ActionDispatch::PermissionsPolicy::Request": [],
"ActionDispatch::PermissionsPolicy": [],
"ActionDispatch::Request::Utils::ParamEncoder": [],
"ActionDispatch::Request::Utils::NoNilParamEncoder": [],
"ActionDispatch::Request::Utils::CustomParamEncoder": [],
"ActionDispatch::Request::Utils": [],
"ActionDispatch::RemoteIp::GetIp": [],
"ActionDispatch::RemoteIp": [],
"Rails::Application::RoutesReloader": [],
"Rails::Application::DefaultMiddlewareStack": [],
"ActionDispatch::MiddlewareStack::Middleware": [],
"ActionDispatch::MiddlewareStack::InstrumentationProxy": [],
"ActionDispatch::MiddlewareStack": [],
"ActionDispatch::Static": [],
"ActionDispatch::FileHandler": [],
"ActionDispatch::ServerTiming::Subscriber": [],
"ActionDispatch::ServerTiming": [],
"ActionDispatch::RequestId": [],
"ActionDispatch::ShowExceptions": [],
"ActionDispatch::PublicExceptions": [],
"ActionDispatch::ActionableExceptions": [],
"ActionDispatch::Request::Session::Options": [],
"ActionDispatch::Session::Compatibility": [],
"ActionDispatch::Session::StaleSessionCheck": [],
"ActionDispatch::Session::SessionObject": [],
"ActionDispatch::Session::AbstractSecureStore": [],
"ActionDispatch::Session": [],
"ActionDispatch::Session::CookieStore::SessionId": [],
"ActionDispatch::Session::CookieStore": [],
"ActionDispatch::Flash::RequestMethods": [],
"ActionDispatch::Flash::FlashNow": [],
"ActionDispatch::Flash::FlashHash": [],
"#\u003cClass:0x0000000121656ae0\u003e": [],
"#\u003cModule:0x0000000121656cc0\u003e": [],
"ActionView::Template::Handlers": [],
"ActionView::Template::Handlers::Raw": [],
"ActionView::Template::Handlers::ERB": [],
"ActionView::Template::Handlers::Html": [],
"ActionView::Template::Handlers::Builder": [],
"ActionView::Template": [],
"ActionView::CacheExpiry::ViewReloader": [],
"ActionView::PathRegistry": [],
"ActionView::Resolver::PathParser": [],
"ActionView::FileSystemResolver": [],
"ActionView::LookupContext::DetailsKey": [],
"ActionView::LookupContext::DetailsCache": [],
"ActionView::LookupContext::ViewPaths": [],
"ActionView::LookupContext": [],
"Sprockets::Cache::FileStore": [],
"Sprockets::Cache": [],
"ActiveJob::Serializers": [],
"ActiveJob::Serializers::ObjectSerializer": [],
"ActiveJob": [],
"ActiveJob::Serializers::SymbolSerializer": [],
"ActiveJob::Serializers::DurationSerializer": [],
"ActiveJob::Serializers::TimeObjectSerializer": [],
"ActiveJob::Serializers::DateTimeSerializer": [],
"ActiveJob::Serializers::DateSerializer": [],
"ActiveJob::Serializers::TimeWithZoneSerializer": [],
"ActiveJob::Serializers::TimeSerializer": [],
"ActiveJob::Serializers::ModuleSerializer": [],
"ActiveJob::Serializers::RangeSerializer": [],
"ActiveJob::Serializers::BigDecimalSerializer": [],
"Rails::ConsoleMethods": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment