--- !ruby/object:Gem::Specification name: contextualized_logs version: !ruby/object:Gem::Version version: 0.0.7.pre.alpha platform: ruby authors: - Hugues Bernet-Rollande autorequire: bindir: bin cert_chain: [] date: 2020-04-30 00:00:00.000000000 Z dependencies: [] description: | Online logging solution (like [Datadog](https://www.datadoghq.com)) have drastically transform the way we log. An app will nowdays logs dozen (hundred) of logs per requests. The issue is often to correlate this logs, with the initiating request (or job) and add shared metadata on this logs. Here come `ContextualizedLogs`. The main idea is to enhance your logs from your controller (including `ContextualizedController`, which use a before action), which will add the params to your logs (and some metadata about the request itself, like `request.uuid`). This metadata are stored in a `ActiveSupport::CurrentAttributes` which is a singleton (reset per request). Each subsequent logs in this thread (request) will also be enriched with this metadata, making it easier to find all the logs associated with a request (`uuid`, `ip`, `params.xxx`). On top of this, logs can also be enriched by the ActiveRecord model they use (`create` or `find`) (models including `ContextualizedModel`). So any time a contextualized model is created or find, some metadata related to the model (`id`, ...) will also be added to the logs. Allowing you to find all logs which "touched" this models. email: - engineering@babylist.com executables: [] extensions: [] extra_rdoc_files: [] files: - MIT-LICENSE - README.md - Rakefile - app/assets/config/manifest.js - app/assets/javascripts/application.js - app/assets/javascripts/cable.js - app/assets/stylesheets/application.css - app/channels/application_cable/channel.rb - app/channels/application_cable/connection.rb - app/controllers/application_controller.rb - app/controllers/concerns/datadog_set_trace_details.rb - app/controllers/custom_context_controller.rb - app/controllers/model_controller.rb - app/helpers/application_helper.rb - app/jobs/application_job.rb - app/mailers/application_mailer.rb - app/models/application_record.rb - app/models/model.rb - app/views/layouts/application.html.erb - app/views/layouts/mailer.html.erb - app/views/layouts/mailer.text.erb - app/workers/model_worker.rb - config/application.rb - config/boot.rb - config/cable.yml - config/credentials.yml.enc - config/database.yml - config/environment.rb - config/environments/development.rb - config/environments/production.rb - config/environments/test.rb - config/initializers/application_controller_renderer.rb - config/initializers/assets.rb - config/initializers/backtrace_silencers.rb - config/initializers/content_security_policy.rb - config/initializers/contextualized_logs.rb - config/initializers/cookies_serializer.rb - config/initializers/datadog.rb - config/initializers/filter_parameter_logging.rb - config/initializers/inflections.rb - config/initializers/lograge.rb - config/initializers/mime_types.rb - config/initializers/sidekiq.rb - config/initializers/wrap_parameters.rb - config/locales/en.yml - config/master.key - config/puma.rb - config/routes.rb - config/spring.rb - config/storage.yml - db/development.sqlite3 - db/migrate/20200424081113_create_model.rb - db/schema.rb - db/seeds.rb - db/test.sqlite3 - lib/contextualized_logs.rb - lib/contextualized_logs/config.rb - lib/contextualized_logs/contextualized_controller.rb - lib/contextualized_logs/contextualized_logger.rb - lib/contextualized_logs/contextualized_model.rb - lib/contextualized_logs/contextualized_worker.rb - lib/contextualized_logs/current_context.rb - lib/contextualized_logs/railtie.rb - lib/contextualized_logs/sidekiq/middleware/client/inject_current_context.rb - lib/contextualized_logs/sidekiq/middleware/server/restore_current_context.rb - lib/contextualized_logs/version.rb - lib/tasks/contextualized_logs_tasks.rake homepage: https://github.com/babylist/contextualized_logs licenses: - MIT metadata: homepage_uri: https://github.com/babylist/contextualized_logs/README.md source_code_uri: https://github.com/babylist/contextualized_logs post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">" - !ruby/object:Gem::Version version: 1.3.1 requirements: [] rubyforge_project: rubygems_version: 2.7.7 signing_key: specification_version: 4 summary: Contextualize your logs (requests params, found/created model metadata, workers, ...) test_files: []