Commit graph

63 commits

Author SHA1 Message Date
Peter Taoussanis
a1c50f1031 [fix] Decrease min Java version (11->8) (@flyingmachine) 2024-08-20 19:20:56 +02:00
Peter Taoussanis
5b30acc897 [nop] Housekeeping 2024-08-20 18:55:12 +02:00
Peter Taoussanis
67cb4941bf [new] OpenTelemetry handler: add experimental trace output 2024-08-19 16:06:07 +02:00
Peter Taoussanis
badbb2c768 [nop] Update benchmark results 2024-08-19 15:13:12 +02:00
Peter Taoussanis
5ab2736c92 [new] Improve uid control, switch to nano-style by default
1. Added `*uid-fn*` to globally control uid style

2. Now distinguish between root and child uids
   Root uids generally need to be longer.

3. Added to utils: `nano-uid-fn` and `hex-uid-fn`
   These use new highly optimized implementations
   when on JVM Clojure, and are highly flexible.
2024-08-19 15:13:12 +02:00
Peter Taoussanis
24d9827dae [doc] Clarify help:signal-creators arg order 2024-08-19 15:13:12 +02:00
Peter Taoussanis
54494b33be [nop] Housekeeping 2024-08-19 15:13:12 +02:00
Peter Taoussanis
4efa2656f2 [nop] Bump deps 2024-08-19 15:13:11 +02:00
Peter Taoussanis
946240dda4 [doc] Doc and example improvements 2024-08-07 11:37:00 +02:00
Peter Taoussanis
3b6396426e [nop] Housekeeping 2024-08-07 11:13:49 +02:00
Peter Taoussanis
d2b3e7201d [nop] Move *middleware* and *ctx* to Encore sigs API 2024-08-07 11:13:49 +02:00
Peter Taoussanis
5ef84a5e41 [nop] Bump deps 2024-08-07 11:13:46 +02:00
Peter Taoussanis
ca9b27f895 [new] Updates for latest Encore signal toolkit changes 2024-05-23 09:43:55 +02:00
Peter Taoussanis
c746e09b62 [new] Add public default-handler-dispatch-opts 2024-05-14 13:39:05 +02:00
Peter Taoussanis
fbb7e38157 [nop] Housekeeping 2024-05-14 13:39:05 +02:00
Peter Taoussanis
7847bd1348 [nop] Housekeeping, docs 2024-05-10 11:43:32 +02:00
Peter Taoussanis
cfb42899c7 v1.0.0-beta8 (2024-05-06) 2024-05-06 16:04:53 +02:00
Peter Taoussanis
0ff8dafaf3 [nop] Housekeeping 2024-05-06 14:13:54 +02:00
Peter Taoussanis
21cb44e709 [mod] Rename, refactor signal formatting utils
- Simplified some util name (only relevant to folks customizing handler behaviour)
- Merged `format-signal->edn-fn`, `format-signal->json-fn` to single `pr-signal-fn`
2024-05-05 13:58:34 +02:00
Peter Taoussanis
839143167b [mod] Simplify middleware - don't auto compose
Previously:

  It was possible to provide a vector of middleware fns when creating
  signals or adding handlers, e.g.:

    (event! ::ev-id1 {:middleware [fn1 fn2 ...]}),
    (add-handler! ::handler-id1 <handler-fn> {:middleware [fn1 fn2 ...]})

After this commit:

  Middleware is always expected to be a single fn, or nil.
  A `comp-middleware` util has been added to make it easy to compose multiple
  middleware fns into one.

Motivation:

  The previous (auto-composition) behaviour was nice when adding handlers,
  but incurred a (small but non-trivial) runtime cost when creating signals.

  The actual benefit (convenience) of auto-composition is very small, so
  I've decided to just remove this feature and add the `comp-middleware` util.

  Note that I ruled out the option of doing auto-comp only when adding handlers
  since that've meant an inconsistency and so complexity for little benefit.
2024-05-05 13:58:16 +02:00
Peter Taoussanis
63f488082b [nop] Housekeeping 2024-05-05 13:58:16 +02:00
Peter Taoussanis
12f4b35d71 [doc] Documentation improvements 2024-04-29 12:15:19 +02:00
Peter Taoussanis
2ba23ee7f7 [new] Add postal (email) handler 2024-04-29 12:15:19 +02:00
Peter Taoussanis
1d4cdb8a3c [nop] Misc housekeeping 2024-04-29 12:15:19 +02:00
Peter Taoussanis
d04f6d8e5b [nop] Misc housekeeping 2024-04-24 13:22:31 +02:00
Peter Taoussanis
d0a15bac6b [mod] Don't auto add OpenTelemetry handler
Adding this manually is easy, and it's probably better to ask users
to do this explicitly since auto config won't always be successful.
2024-04-24 13:22:31 +02:00
Peter Taoussanis
ffea1a30ed [fix] Fix broken AOT support, add AOT tests
Thanks to @AdamFrey for reporting this issue!
Ref. <https://clojurians.slack.com/archives/C06ALA6EEUA/p1713805333272469>

Previously:

  Attempting to run AOT'd code using Telemere would result in errors like:
  "Attempting to call unbound fn: #'taoensso.telemere.handlers.open-telemetry/handler:open-telemetry-logger"

The approach I was using of conditionally requiring namespaces and then aliasing vars seems to be inherently
fragile under AOT, and was leading to the remote source var being unbound.

With this commit I've now switched to a simpler approach - where we conditionally require namespaces *without*
the need for any aliasing.
2024-04-24 13:22:30 +02:00
Peter Taoussanis
b98e492071 [fix] Bad default OpenTelemetry handler constructor call 2024-04-24 12:41:56 +02:00
Peter Taoussanis
2597106d6b [nop] Bump deps 2024-04-24 12:41:50 +02:00
Peter Taoussanis
2bf8e1c5bd [mod] Rename clojure.tools.logging sys val
Better to avoid characters that could cause trouble
2024-04-18 12:05:32 +02:00
Peter Taoussanis
ee8505933c [doc] Documentation work 2024-04-17 15:51:24 +02:00
Peter Taoussanis
356a7f97b6 [new] Aliad error-signal? in main ns 2024-04-17 15:51:24 +02:00
Peter Taoussanis
7f16266699 [new] Incl. sig filter system val info in internal docs 2024-04-17 15:51:24 +02:00
Peter Taoussanis
5690bfe11a [mod] Rename "interop" -> "intake" 2024-04-17 15:51:24 +02:00
Peter Taoussanis
536f5edf10 [nop] Misc housekeeping 2024-04-17 11:00:27 +02:00
Peter Taoussanis
b56f7c4908 [nop] Misc housekeeping 2024-04-12 16:54:13 +02:00
Peter Taoussanis
be4644220c [new] Add basic OpenTelemetry handler 2024-04-10 18:40:33 +02:00
Peter Taoussanis
2abb9de61b [nop] Collect handler namespaces 2024-04-10 18:40:33 +02:00
Peter Taoussanis
0c3f685734 [nop] Misc housekeeping 2024-04-10 18:40:33 +02:00
Peter Taoussanis
23492530b6 [nop] Bump deps 2024-04-10 18:40:33 +02:00
Peter Taoussanis
323ba0e99c [nop] Restructure handlers 2024-04-05 18:17:07 +02:00
Peter Taoussanis
21a02f286b [new] Add archiving file handler 2024-04-05 17:51:14 +02:00
Peter Taoussanis
15577ab106 [nop] Handler housekeeping 2024-04-05 17:51:14 +02:00
Peter Taoussanis
5c85860b3e [new] Extend trace!, spy! for easier catching 2024-04-05 17:51:14 +02:00
Peter Taoussanis
dae36ef549 [mod] Rework (simplify) with-signal API 2024-04-05 17:51:14 +02:00
Peter Taoussanis
46e629504b [nop] Misc housekeeping 2024-04-05 17:51:14 +02:00
Peter Taoussanis
52b3613867 [nop] Bump deps 2024-03-28 16:24:08 +01:00
Peter Taoussanis
1f14712950 [new] Add first handlers 2024-03-28 16:24:08 +01:00
Peter Taoussanis
126dc2aaaa [fix] Cljs requires 2024-03-28 16:24:08 +01:00
Peter Taoussanis
dfc52d6f87 [nop] Switch to faster enc/binding 2024-03-28 16:24:08 +01:00