effectful-data-cache-opentelemetry: OpenTelemetry instrumentation for effectful-data-cache

[ bsd3, cache, library ] [ Propose Tags ] [ Report a vulnerability ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2.0.2, 0.2.1.0
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5), effectful-core (>=2.3 && <3), effectful-data-cache (>=0.1.0.4 && <0.3), hs-opentelemetry-api (>=1.0 && <1.1), text (>=2.1 && <3) [details]
License BSD-3-Clause
Copyright 2026 drlkf
Author drlkf
Maintainer drlkf <drlkf@drlkf.net>
Uploaded by drlkf at 2026-10-26T01:01:16Z
Category cache
Home page https://github.com/haskell-github-trust/effectful-data-cache#readme
Bug tracker https://github.com/haskell-github-trust/effectful-data-cache/issues
Source repo head: git clone https://github.com/haskell-github-trust/effectful-data-cache
Distributions
Downloads 2 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for effectful-data-cache-opentelemetry-0.2.1.0

[back to package description]

effectful-data-cache-opentelemetry

traceCache wraps every operation in an OpenTelemetry span (cache.insert, cache.lookup, …), with cache.hit on lookups and cache.size on size/keys. Keys and values are never recorded.

import Effectful.Cache.OpenTelemetry (traceCache)

main = runEff . runCache Nothing . traceCache tracer $ do
  insert "key" (42 :: Int)

It is an interposer, so it layers over any interpreter and can be omitted without touching call sites.