Interface TraceOptions

interface TraceOptions {
    links?: {
        attributes?: Object;
        context: export=.SpanContext;
    }[];
    measured?: boolean | {
        [key: string]: boolean;
    };
    resource?: string;
    service?: string;
    type?: string;
}

Hierarchy

  • Analyzable
    • TraceOptions

Properties

links?: {
    attributes?: Object;
    context: export=.SpanContext;
}[]

An array of span links

Type declaration

measured?: boolean | {
    [key: string]: boolean;
}

Whether to measure the span. Can also be set to a key-value pair with span names as keys and booleans as values for more granular control.

Type declaration

  • [key: string]: boolean
resource?: string

The resource you are tracing. The resource name must not be longer than 5000 characters.

service?: string

The service you are tracing. The service name must not be longer than 100 characters.

type?: string

The type of request.