Small fixes

This commit is contained in:
MTRNord
2023-09-01 19:17:37 +02:00
parent 4bd1990507
commit b36fd2d0fc
2 changed files with 398 additions and 479 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ limitations under the License.
* are NOT distributed, contributed, committed, or licensed under the Apache License.
*/
import opentelemetry from "@opentelemetry/api";
import opentelemetry, { Span } from "@opentelemetry/api";
import {
LogLevel,
LogService,
@@ -521,7 +521,7 @@ export function trace(spanName: string) {
'draupnir-appservice-tracer'
);
return tracer.startActiveSpan(spanName, async (parentSpan) => {
return tracer.startActiveSpan(spanName, async (parentSpan: Span) => {
const result = propertyDescriptor.value.apply(this, args);
parentSpan.end();
return result;
@@ -555,7 +555,7 @@ export function traceSync(spanName: string) {
'draupnir-appservice-tracer'
);
return tracer.startActiveSpan(spanName, (parentSpan) => {
return tracer.startActiveSpan(spanName, (parentSpan: Span) => {
const result = propertyDescriptor.value.apply(this, args);
parentSpan.end();
return result;
+395 -476
View File
File diff suppressed because it is too large Load Diff