Skip to content

Lack of fail over for emitters. #50

Open
@smentek

Description

@smentek

Lets say I want to track unstructEvent link:
$trucker->trackUnstructEvent($json, $context, $timestamp);

Now let say I want to do some actions in case it fails. There is no way to do that.

  • No Exception that could be catched
  • No false flag in return

Nothing. The same for all other calls.

It is like speed would be all we care about here and reliability is nothing.
But if speed is what we are focus on should we even write it in PHP? I would prefer slow but readable and safe solution...

After adding Exceptions please remove all 'print_r' from code. What do do with error messages that would be properly set in exceptions should be part of application that uses snowplow-tracker.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions