UNPKG

@dynatrace/opentelemetry-core

Version:

Dynatrace OpenTelemetry core package

23 lines 804 B
import { Span } from "@opentelemetry/api"; /** * can be used to convert an exception object to a meaningful string including * stack if possible. * @param error */ export declare function verboseFormatException(error: unknown): string; /** * Format an error object as string. * @param error */ export declare function formatException(error: unknown): string; /** * Stringify all own properties of an object into a string. * @param obj to object to serialize */ export declare function prettyPrintObject<T extends Record<string, unknown>>(obj: T): string; /** * Stringify a span into "<traceId>:<spanId>:<isRecording>" or "-"" if no span is given * @param span the span */ export declare function spanToString(span: Span | null | undefined): string; //# sourceMappingURL=LoggingUtils.d.ts.map