@teamkeel/functions-runtime 0.315.0 → 0.317.0
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/package.json +1 -1
- package/src/tracing.js +2 -2
package/package.json
CHANGED
package/src/tracing.js
CHANGED
|
@@ -2,9 +2,9 @@ const opentelemetry = require("@opentelemetry/api");
|
|
|
2
2
|
|
|
3
3
|
const serviceName = "customerCustomFunctions";
|
|
4
4
|
|
|
5
|
-
const tracer = opentelemetry.trace.getTracer(serviceName);
|
|
6
|
-
|
|
7
5
|
function withSpan(name, fn) {
|
|
6
|
+
const tracer = opentelemetry.trace.getTracer(serviceName);
|
|
7
|
+
|
|
8
8
|
return tracer.startActiveSpan(name, async (span) => {
|
|
9
9
|
try {
|
|
10
10
|
// await the thing (this means we can use try/catch)
|