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
}