Swirrl / drafter

A clojure service and a client to it for exposing data management operations to PMD
Other
0 stars 0 forks source link

Provide datadog metrics on component draftset operations #608

Open RickMoynihan opened 2 years ago

RickMoynihan commented 2 years ago

We currently give datadog metrics on drafter.sparql.update.time which reports metrics on arbitrary sparql updates.

https://github.com/Swirrl/drafter/blob/master/drafter/src/drafter/rdf/sparql.clj#L40

It would be useful to break this down by operation too, to give us a little more visibility on what is happening and where time is spent.

The above function is called from approximately 21 other call sites e.g.

I think it makes sense to wrap a datadog/measure! over most (if not all) of these call sites to provide more visibility, on what is happening; and then surface this in our datadog boards.