@codebayu/nuxt-plugins-signoz
Version:
Reusable plugin to implement signoz on Nuxt project
25 lines (24 loc) • 526 B
TypeScript
import { Tracer } from "@opentelemetry/api";
export interface IInitTracer {
serviceName: string;
exporterUrl: string;
attributes: IInitAttributes;
}
export interface IInitAttributes {
path: string;
uuid: string;
}
export interface IAttributes {
[key: string]: string;
}
export interface IEvents {
name: string;
keyValue: IAttributes;
}
export interface ICreateSpan {
tracer: Tracer;
name: string;
func?: Function;
attributes?: IAttributes | null;
events?: IEvents | null;
}