Files
klz-cables.com/.pnpm-store/v10/files/ab/5d3d7637bca32d35e2eb36b8c2553e028740c85a438a2a3317ab8aec8d2a83be7cc46b05fad5c4f16f3a1de2618064598a4d34c31bc1d9ec042ffceb78e98f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

53 lines
2.3 KiB
Plaintext

import { SpanKind, SpanStatus } from '@opentelemetry/api';
import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base';
import { AbstractSpan } from '../types';
/**
* Check if a given span has attributes.
* This is necessary because the base `Span` type does not have attributes,
* so in places where we are passed a generic span, we need to check if we want to access them.
*/
export declare function spanHasAttributes<SpanType extends AbstractSpan>(span: SpanType): span is SpanType & {
attributes: ReadableSpan['attributes'];
};
/**
* Check if a given span has a kind.
* This is necessary because the base `Span` type does not have a kind,
* so in places where we are passed a generic span, we need to check if we want to access it.
*/
export declare function spanHasKind<SpanType extends AbstractSpan>(span: SpanType): span is SpanType & {
kind: SpanKind;
};
/**
* Check if a given span has a status.
* This is necessary because the base `Span` type does not have a status,
* so in places where we are passed a generic span, we need to check if we want to access it.
*/
export declare function spanHasStatus<SpanType extends AbstractSpan>(span: SpanType): span is SpanType & {
status: SpanStatus;
};
/**
* Check if a given span has a name.
* This is necessary because the base `Span` type does not have a name,
* so in places where we are passed a generic span, we need to check if we want to access it.
*/
export declare function spanHasName<SpanType extends AbstractSpan>(span: SpanType): span is SpanType & {
name: string;
};
/**
* Check if a given span has a kind.
* This is necessary because the base `Span` type does not have a kind,
* so in places where we are passed a generic span, we need to check if we want to access it.
*/
export declare function spanHasParentId<SpanType extends AbstractSpan>(span: SpanType): span is SpanType & {
parentSpanId: string;
};
/**
* Check if a given span has events.
* This is necessary because the base `Span` type does not have events,
* so in places where we are passed a generic span, we need to check if we want to access it.
*/
export declare function spanHasEvents<SpanType extends AbstractSpan>(span: SpanType): span is SpanType & {
events: TimedEvent[];
};
//# sourceMappingURL=spanTypes.d.ts.map