packages feed

e11y-otel-0.1.0.0: e11y-otel.cabal

cabal-version:   3.0
name:            e11y-otel
version:         0.1.0.0
synopsis:        OpenTelemetry-based rendering for e11y
description:     Render [e11y](https://hackage.haskell.org/package/e11y) events to OpenTelemetry traces.
bug-reports:     https://github.com/shlevy/e11y/issues
homepage:        https://github.com/shlevy/e11y
license:         Apache-2.0
license-file:    LICENSE
author:          Shea Levy
maintainer:      shea@shealevy.com
copyright:
  Copyright 2024 Shea Levy

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
category:        Observability
build-type:      Simple
extra-doc-files: CHANGELOG.md
tested-with:     GHC == { 9.2.8, 9.4.8, 9.6.4, 9.8.1 }

source-repository head
  type:     git
  location: https://github.com/shlevy/e11y

library
  exposed-modules: Observe.Event.Backend.OpenTelemetry
  build-depends:
    , base                 ^>= { 4.16, 4.17, 4.18, 4.19 }
    , e11y                 ^>= { 0.1 }
    , hs-opentelemetry-api ^>= { 0.1 }
    , parametric-functor   ^>= { 0.1 }
    , text                 ^>= { 1.2, 2.0, 2.1 }
    , unordered-containers ^>= { 0.2 }

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

test-suite e11y-otel
  type:             exitcode-stdio-1.0
  main-is:          Test.hs
  hs-source-dirs:   test
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N
  build-depends:
    , async                ^>= { 2.2 }
    , base
    , e11y
    , e11y-otel
    , general-allocate     ^>= { 0.2 }
    , hs-opentelemetry-api
    , hs-opentelemetry-sdk ^>= { 0.0.3 }
    , sydtest              ^>= { 0.15 }
    , text
    , unordered-containers

  default-language: GHC2021