@sealant/sdk-next 0.40.0-next.949 → 0.40.0-next.951
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/effect/trace.js +7 -2
- package/package.json +3 -3
package/dist/effect/trace.js
CHANGED
|
@@ -201,10 +201,15 @@ const routeTemplatingTracer = (tracer, parentSpanId, route) => Tracer.make({
|
|
|
201
201
|
return span;
|
|
202
202
|
},
|
|
203
203
|
});
|
|
204
|
-
/**
|
|
204
|
+
/**
|
|
205
|
+
* What Sentry calls an SDK call's span: its operation, and in words what the call does, from its
|
|
206
|
+
* endpoint (`sealant.sdk.sessions.get_session_output` reads `sealant.sdk — get session output`).
|
|
207
|
+
* The span's name stays in `code.function.name`, so a search for it still finds the call.
|
|
208
|
+
*/
|
|
205
209
|
const sdkSpanAttributes = (name) => ({
|
|
206
210
|
"sentry.op": "sealant.sdk",
|
|
207
|
-
"sentry.description": name,
|
|
211
|
+
"sentry.description": (name.split(".").at(-1) ?? name).split("_").filter(Boolean).join(" "),
|
|
212
|
+
"code.function.name": name,
|
|
208
213
|
});
|
|
209
214
|
/**
|
|
210
215
|
* Run one contract call in its client span, and choose what trace header its request carries (see
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sealant/sdk-next",
|
|
3
|
-
"version": "0.40.0-next.
|
|
3
|
+
"version": "0.40.0-next.951",
|
|
4
4
|
"description": "The fluent public SDK for Sealant — create a workspace, run a harness, replay the record.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"node": ">=20"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.
|
|
29
|
+
"@sealant/api-contracts": "npm:@sealant/api-contracts-next@0.40.0-next.951"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"effect": "^4.0.5"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "68717e2c0881b250989642923cebb82a71719117",
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
}
|