datomic

robert-stuttaford 2025-12-15T12:36:46.916909Z

is anyone who puts code on their transactor classpath perhaps instrumenting this code with tracing a la http://honeycomb.io ? any gotchas to be aware of?

ghadi 2025-12-16T14:22:35.337339Z

have you inspected https://docs.datomic.com/reference/tx-stats.html#approach? It should cover almost anything you'd want about transactions. I’m a fan of tracing but I'd hesitate to put it inside tx-fns. (You could consider pumping tx-stats to Honeycomb)

robert-stuttaford 2025-12-16T14:48:55.494759Z

thanks @ghadi!

Joe Lane 2025-12-15T13:04:43.108319Z

Are these used for transaction functions?

robert-stuttaford 2025-12-15T15:06:34.327979Z

yes, the idea would be to instrument transaction functions in HC

robert-stuttaford 2025-12-15T15:07:07.557999Z

i guess the broader question is, other than via peer-side io-stats, what other methods are there for observing transaction function activity?

Joe Lane 2025-12-15T15:39:05.759419Z

datomic.transaction logger

šŸ‘ 1
robert-stuttaford 2025-12-15T15:52:05.136549Z

thank you! is there any way to correlate these logs with the installed d/function transaction function?

Joe Lane 2025-12-15T16:00:47.615849Z

Unfortunately, no, unless you write the logger into the tx-fn

1
robert-stuttaford 2025-12-15T16:04:14.528159Z

ah! are we able to emit our own logs into the same log stream as these datomic.transaction logs, then? if so, is there perhaps example code i can follow?

Joe Lane 2025-12-15T16:05:25.954469Z

We don't offer that unfortunately, but you can log things yourself somewhere

robert-stuttaford 2025-12-15T16:06:26.797769Z

ok, will give that a go, thank you

Joe Lane 2025-12-15T16:06:57.510189Z

I'm curious about how you're gonna install the honeycomb tracer in the transactor, but I'm excited to find out!

šŸ˜… 1
robert-stuttaford 2025-12-15T16:09:15.798929Z

that's why i asked in here, haha. i guess given how it needs to be configured, there is no suitable opportunity to do so

robert-stuttaford 2025-12-15T16:14:13.079859Z

@joe.lane when you say 'log things yourself somewhere' 'into the tx-fn' do you mean logging to the transactor's own log or somehow emitting logs via something we side-car in on the classpath - ie. there's no facility to log to the transactor's own log, right? we have to side-car?

Joe Lane 2025-12-15T16:58:46.611389Z

I'd like to revise my statement. Don't try and get logging intertwined with the logging in the Transactor. Do what you were going to do with honeycomb.

robert-stuttaford 2025-12-15T17:01:13.349439Z

thank you!