Module

Yoga.OpenTelemetry.OpenTelemetryOm

Package
purescript-yoga-opentelemetry-om
Repository
rowtype-yoga/purescript-yoga-opentelemetry-om

#startSpan Source

startSpan :: forall r err. String -> Om { tracer :: Tracer | r } err Span

#startSpanWithAttributes Source

startSpanWithAttributes :: forall r attrs err. Homogeneous attrs AttributeValue => String -> Record attrs -> Om { tracer :: Tracer | r } err Span

#endSpan Source

endSpan :: forall r err. Span -> Om r err Unit

#setAttribute Source

setAttribute :: forall r err. String -> AttributeValue -> Span -> Om r err Unit

#addEvent Source

addEvent :: forall r err. String -> Span -> Om r err Unit

#setStatus Source

setStatus :: forall r err. SpanStatusCode -> Span -> Om r err Unit

#recordException Source

recordException :: forall r err. String -> Span -> Om r err Unit

#withSpan Source

withSpan :: forall r err a. String -> Om { tracer :: Tracer | r } err a -> Om { tracer :: Tracer | r } err a