effect 4.0.0-beta.91 → 4.0.0-beta.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cause.d.ts +3 -1
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js.map +1 -1
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +13 -7
- package/dist/Schema.js.map +1 -1
- package/dist/internal/core.js +1 -1
- package/dist/internal/effect.js +8 -6
- package/dist/internal/effect.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +1 -1
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +1 -1
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +5 -4
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +5 -4
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +29 -4
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +44 -2
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +2 -28
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +4 -46
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +30 -15
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +4 -3
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/package.json +1 -1
- package/src/Cause.ts +3 -1
- package/src/Schema.ts +17 -3
- package/src/internal/core.ts +1 -1
- package/src/internal/effect.ts +14 -6
- package/src/unstable/http/HttpBody.ts +2 -2
- package/src/unstable/http/HttpClient.ts +2 -2
- package/src/unstable/http/HttpClientRequest.ts +8 -7
- package/src/unstable/http/Url.ts +62 -7
- package/src/unstable/http/UrlParams.ts +5 -58
- package/src/unstable/httpapi/HttpApiBuilder.ts +33 -21
- package/src/unstable/observability/OtlpTracer.ts +4 -3
|
@@ -17,7 +17,6 @@ import * as Duration from "../../Duration.ts"
|
|
|
17
17
|
import * as Effect from "../../Effect.ts"
|
|
18
18
|
import type * as Exit from "../../Exit.ts"
|
|
19
19
|
import { flow } from "../../Function.ts"
|
|
20
|
-
import { renderPrettyError } from "../../internal/effect.ts"
|
|
21
20
|
import * as Layer from "../../Layer.ts"
|
|
22
21
|
import * as Option from "../../Option.ts"
|
|
23
22
|
import type * as Scope from "../../Scope.ts"
|
|
@@ -285,7 +284,9 @@ const makeOtlpSpan = (self: SpanImpl): OtlpSpan => {
|
|
|
285
284
|
value: { boolValue: true }
|
|
286
285
|
})
|
|
287
286
|
} else {
|
|
288
|
-
const errors = Cause.prettyErrors(status.exit.cause
|
|
287
|
+
const errors = Cause.prettyErrors(status.exit.cause, {
|
|
288
|
+
includeCauseInStack: true
|
|
289
|
+
})
|
|
289
290
|
otelStatus = {
|
|
290
291
|
code: StatusCode.Error
|
|
291
292
|
}
|
|
@@ -312,7 +313,7 @@ const makeOtlpSpan = (self: SpanImpl): OtlpSpan => {
|
|
|
312
313
|
{
|
|
313
314
|
"key": "exception.stacktrace",
|
|
314
315
|
"value": {
|
|
315
|
-
"stringValue":
|
|
316
|
+
"stringValue": error.stack ?? "No stack trace available"
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
]
|