effect-deprecated / otel Goto Github PK
View Code? Open in Web Editor NEWOpenTelemetry integration with Effect
Home Page: https://matechs.com
License: MIT License
OpenTelemetry integration with Effect
Home Page: https://matechs.com
License: MIT License
Currently @effect-ts/otel
only support @effect-ts/core/Effect
code but should also support code written with @effect-ts/core/Effect/Stream
.
Additionally to setting the error
attributes here we should also set the span status accordingly like the following:
if (e._tag === "Failure") {
s.setAttribute("error.type", "Fiber Failure")
s.setAttribute("error.message", "An Effect Has A Failure")
s.setAttribute("error.stack", pretty(e.cause))
s.setStatus({ code: 2 })
} else {
s.setStatus({ code: 1 })
}
(Should probably use the SpanStatusCode
enum directly instead of hard-coding the number value)
In order to reduce the performance overhead of tracing (particularly when using slower operations such as JSON.stringify
) we should explore making it possible to defer the execution of some operations where possible (e.g. span attribute processing).
return T.bracketExit_(
createSpan,
(s) => pipe(effect, T.provideService(Span)(new SpanImpl(s))),
(s, e) =>
T.succeedWith(() => {
if (e._tag === "Failure") {
s.setAttribute("error.type", "Fiber Failure")
s.setAttribute("error.message", "An Effect Has A Failure")
s.setAttribute("error.stack", pretty(e.cause))
s.setStatus({ code: OTApi.SpanStatusCode.ERROR })
// ^^^^^^^^^^^^^^^^^^^
} else {
s.setStatus({ code: OTApi.SpanStatusCode.OK })
}
s.end()
})
)
Differentiate here between interruption due to an error or "voluntary" interruptions
Currently @effect-ts/otel
only support @effect-ts/core/Effect
code but should also support code written with @effect-ts/core/Sync
.
yarn.lock
after releasing new version
yarn version:*
commits & pushes some code without refreshing the yarn.lock
file leading to the release failing in GH actionstsc --build --watch
for entire project as VSC task
incremental
and composite
set to true
devDependencies
from root package.json
to specific package/my-pkg/package.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.