Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(blueprints): add printable event helper function and blueprint for a token that prints parseable events in json format #350

Closed
wants to merge 1 commit into from

Conversation

arielmelendez
Copy link

@arielmelendez arielmelendez commented Sep 18, 2024

Motivation:
Allow processes to utilize their log output streams to deposit newline-delimited JSON events. This allows CUs to parse and transport these events, if desired, to any destination outside of AO that might be useful to them.

Example Use Cases:

  • print events to the console
  • transport events to a log streaming platform
  • transport events to a durable object store for later processing (e.g. CQRS pattern)
  • transport events to a pub/sub system outside of AO
  • transport events to a metrics or analytical process system (e.g. Honeycomb) and send alerts based on trigger conditions

The eventing_token.lua blueprint is a modified copy of the original token blueprint. Some of the boilerplate comments have been removed from the file for brevity but can be restored if desired.

Technical Notes:
The event format for this contribution uses a compact flag _e: 1 for parsers to identify parseable events.

…or a token that prints parseable events in json format
@twilson63
Copy link
Collaborator

Why not register as APM packages?

https://apm_betteridea.g8way.io/

@twilson63 twilson63 closed this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants