Class: Cybertrain::ErrorReporter::Sender
- Inherits:
-
Object
- Object
- Cybertrain::ErrorReporter::Sender
- Defined in:
- cybertrain/error_reporter.rb
Overview
Where the delivery thread sends each event after the subscribers. The base sends nothing; the Sentry sender overrides its methods.
Direct Known Subclasses
Instance Method Summary collapse
-
#deliver_event(event) ⇒ Boolean
Sends one event; true when it was sent.
-
#sender_name ⇒ String
The require line’s name of the sender this is (“” for the base, which sends nothing;
"sentry"for the Sentry sender): the check of a DSN set with no sender linked asks it (Application.sender_problem, at boot and before a command,jobsorconsoleruns), without naming a sender’s class. -
#sends? ⇒ Boolean
Whether this sender sends at all (a DSN is configured).
Instance Method Details
#deliver_event(event) ⇒ Boolean
Sends one event; true when it was sent.
258 259 260 |
# File 'cybertrain/error_reporter.rb', line 258 def deliver_event(event) false end |
#sender_name ⇒ String
The require line’s name of the sender this is (“” for the base,
which sends nothing; "sentry" for the Sentry sender): the check
of a DSN set with no sender linked asks it (Application.sender_problem,
at boot and before a command, jobs or console runs), without
naming a sender’s class. A sender of the application’s own that
sends the DSN’s reports must answer a non-empty name: with
CYBERTRAIN_SENTRY_DSN set, "" refuses boot (“CYBERTRAIN_SENTRY_DSN
is set, but this program does not link the Sentry sender: …”).
272 273 274 |
# File 'cybertrain/error_reporter.rb', line 272 def sender_name "" end |
#sends? ⇒ Boolean
Whether this sender sends at all (a DSN is configured).
250 251 252 |
# File 'cybertrain/error_reporter.rb', line 250 def sends? false end |