packages feed

hs-opentelemetry-instrumentation-persistent-mysql-1.0.0.0: hs-opentelemetry-instrumentation-persistent-mysql.cabal

cabal-version: 2.4

name: hs-opentelemetry-instrumentation-persistent-mysql
version: 1.0.0.0
synopsis: OpenTelemetry instrumentation for persistent-mysql
description:
  OpenTelemetry instrumentation for @persistent-mysql@. Records database client
  spans for MySQL queries issued through the Persistent ORM, including
  connection-level attributes following the database semantic conventions.
license: BSD-3-Clause
author: Kazuki Okamoto (岡本和樹)
maintainer: kazuki.okamoto@herp.co.jp
copyright: 2024 Ian Duncan, Mercury Technologies
license-file: LICENSE
homepage: https://github.com/iand675/hs-opentelemetry#readme
bug-reports: https://github.com/iand675/hs-opentelemetry/issues
category: OpenTelemetry, Database, MySQL
extra-doc-files: CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/iand675/hs-opentelemetry

common common
  build-depends: base >= 4 && < 5
  ghc-options: -Wall
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat
  default-language: Haskell2010

library
  import: common
  hs-source-dirs: src
  exposed-modules: OpenTelemetry.Instrumentation.Persistent.MySQL
  build-depends: hs-opentelemetry-api ^>= 1.0,
                 hs-opentelemetry-instrumentation-persistent ^>= 1.0,
                 hs-opentelemetry-semantic-conventions >= 1.40 && < 2,
                 iproute,
                 monad-logger,
                 mysql,
                 persistent,
                 persistent-mysql,
                 resource-pool,
                 text,
                 unliftio-core,
                 unordered-containers
  ghc-options: -Wcompat
               -Wno-name-shadowing
  if impl(ghc >= 6.4)
    ghc-options: -Wincomplete-record-updates
  if impl(ghc >= 6.8)
    ghc-options: -Wmonomorphism-restriction
  if impl(ghc >= 7.0)
    ghc-options: -Wmissing-import-lists
  if impl(ghc >= 7.2)
    ghc-options: -Wincomplete-uni-patterns
                 -Widentities
  if impl(ghc >= 8.0)
    ghc-options: -Wmissing-exported-signatures
                 -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options: -Wmissing-home-modules
  if impl(ghc >= 8.4)
    ghc-options: -Wmissing-export-lists
                 -Wpartial-fields
  if impl(ghc >= 8.8)
    ghc-options: -Wmissing-deriving-strategies
  if impl(ghc >= 8.10)
    ghc-options: -Wunused-packages
  if impl(ghc >= 9.0)
    ghc-options: -Winvalid-haddock
  if impl(ghc >= 9.2)
    ghc-options: -Wmissing-kind-signatures
                 -Woperator-whitespace
                 -Wredundant-bang-patterns