Module: Logtail::Config::Integrations::Rack

Extended by:
Rack
Included in:
Rack
Defined in:
lib/logtail-rack/config.rb

Instance Method Summary collapse

Instance Method Details

#error_eventObject

Convenience method for accessing the Integrations::Rack::ErrorEvent middleware class specific configuration. See Integrations::Rack::ExceptionEvent for a list of methods available.

Examples:

config = Logtail::Config.instance
config.integrations.rack.error_event.enabled = false


35
36
37
# File 'lib/logtail-rack/config.rb', line 35

def error_event
  Logtail::Integrations::Rack::ErrorEvent
end

#http_contextObject

Convenience method for accessing the Integrations::Rack::HTTPContext middleware class specific configuration. See Integrations::Rack::HTTPContext for a list of methods available.

Examples:

config = Logtail::Config.instance
config.integrations.rack.http_context.enabled = false


46
47
48
# File 'lib/logtail-rack/config.rb', line 46

def http_context
  Logtail::Integrations::Rack::HTTPContext
end

#http_eventsObject

Convenience method for accessing the Integrations::Rack::HTTPEvents middleware class specific configuration. See Integrations::Rack::HTTPEvents for a list of methods available.

Examples:

config = Logtail::Config.instance
config.integrations.rack.http_events.enabled = false


57
58
59
# File 'lib/logtail-rack/config.rb', line 57

def http_events
  Logtail::Integrations::Rack::HTTPEvents
end

#session_contextObject

Convenience method for accessing the Integrations::Rack::SessionContext middleware class specific configuration. See Integrations::Rack::SessionContext for a list of methods available.

Examples:

config = Logtail::Config.instance
config.integrations.rack.session_context.enabled = false


68
69
70
# File 'lib/logtail-rack/config.rb', line 68

def session_context
  Logtail::Integrations::Rack::SessionContext
end

#user_contextObject

Convenience method for accessing the Integrations::Rack::UserContext middleware class specific configuration. See Integrations::Rack::UserContext for a list of methods available.

Examples:

config = Logtail::Config.instance
config.integrations.rack.user_context.enabled = false


79
80
81
# File 'lib/logtail-rack/config.rb', line 79

def user_context
  Logtail::Integrations::Rack::UserContext
end