Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
No EOL
1.1 KiB
Text
25 lines
No EOL
1.1 KiB
Text
import type { Span as WriteableSpan, SpanKind, Tracer } from '@opentelemetry/api';
|
|
import type { BasicTracerProvider, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
import type { Scope, Span, StartSpanOptions } from '@sentry/core';
|
|
export interface OpenTelemetryClient {
|
|
tracer: Tracer;
|
|
traceProvider: BasicTracerProvider | undefined;
|
|
}
|
|
export interface OpenTelemetrySpanContext extends StartSpanOptions {
|
|
kind?: SpanKind;
|
|
}
|
|
/**
|
|
* The base `Span` type is basically a `WriteableSpan`.
|
|
* There are places where we basically want to allow passing _any_ span,
|
|
* so in these cases we type this as `AbstractSpan` which could be either a regular `Span` or a `ReadableSpan`.
|
|
* You'll have to make sure to check relevant fields before accessing them.
|
|
*
|
|
* Note that technically, the `Span` exported from `@opentelemetry/sdk-trace-base` matches this,
|
|
* but we cannot be 100% sure that we are actually getting such a span, so this type is more defensive.
|
|
*/
|
|
export type AbstractSpan = WriteableSpan | ReadableSpan | Span;
|
|
export interface CurrentScopes {
|
|
scope: Scope;
|
|
isolationScope: Scope;
|
|
}
|
|
//# sourceMappingURL=types.d.ts.map |