module OpenTelemetry.Trace.Id.Generator.Dummy where

import OpenTelemetry.Trace.Id.Generator


-- | A non-functioning id generator for use when an SDK is not installed
dummyIdGenerator :: IdGenerator
dummyIdGenerator :: IdGenerator
dummyIdGenerator =
  IdGenerator
    { generateSpanIdBytes :: IO ByteString
generateSpanIdBytes = ByteString -> IO ByteString
forall a. a -> IO a
forall (f :: * -> *) a. Applicative f => a -> f a
pure ByteString
"\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"
    , generateTraceIdBytes :: IO ByteString
generateTraceIdBytes = ByteString -> IO ByteString
forall a. a -> IO a
forall (f :: * -> *) a. Applicative f => a -> f a
pure ByteString
"\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL"
    }