packages feed

hs-opentelemetry-instrumentation-hw-kafka-client-1.0.0.0: hs-opentelemetry-instrumentation-hw-kafka-client.cabal

cabal-version:   3.0
name:            hs-opentelemetry-instrumentation-hw-kafka-client
version:         1.0.0.0
synopsis:        OpenTelemetry instrumentation for hw-kafka-client
description:
  OpenTelemetry tracing instrumentation for the @hw-kafka-client@ Kafka library.
  Propagates trace context through Kafka record headers so that producer and
  consumer spans are correlated across services.
license:         BSD-3-Clause
license-file:    LICENSE
author:          Alberto Fanton
maintainer:      alberto.fanton@protonmail.com
copyright:       2024 Ian Duncan, Mercury Technologies
homepage:        https://github.com/iand675/hs-opentelemetry#readme
bug-reports:     https://github.com/iand675/hs-opentelemetry/issues
category:        OpenTelemetry, Telemetry, Kafka
build-type:      Simple
extra-doc-files: CHANGELOG.md

-- extra-source-files:

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

common warnings
  ghc-options: -Wall

library
  import:           warnings
  exposed-modules:  OpenTelemetry.Instrumentation.Kafka

  -- other-modules:
  -- other-extensions:
  build-depends:
    , base                  >=4.7 && <5
    , containers
    , text
    , bytestring
    , hs-opentelemetry-api ^>= 1.0
    , hs-opentelemetry-semantic-conventions >= 1.40 && < 2
    , hw-kafka-client
    , unliftio-core

  hs-source-dirs:   src
  default-language: Haskell2010

test-suite hs-opentelemetry-instrumentation-hw-kafka-client-test
  import:           warnings
  type:             exitcode-stdio-1.0
  main-is:          Spec.hs
  hs-source-dirs:   test
  default-language: Haskell2010
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N
  build-depends:
    , base                  >=4.7 && <5
    , hs-opentelemetry-instrumentation-hw-kafka-client ^>= 1.0
    , hs-opentelemetry-api ^>= 1.0
    , hspec
    , text
    , bytestring
    , hw-kafka-client
    , containers
    , unordered-containers