Skip to content

Commit ebfafa8

Browse files
committed
review suggestions
1 parent 92da34b commit ebfafa8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/core/src/types-hoist/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export type {
113113
SpanContextData,
114114
TraceFlag,
115115
} from './span';
116-
export type { SpanLink, SpanLinkJSON } from './link';
117116
export type { SpanStatus } from './spanStatus';
118117
export type { TimedEvent } from './timedEvent';
119118
export type { StackFrame } from './stackframe';

packages/core/src/types-hoist/span.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ export interface Span {
257257
* Prefer setting links directly when starting a span (e.g. `Sentry.startSpan()`) as some context information is only available during span creation.
258258
* @param link - The link containing the context of the span to link to and optional attributes
259259
*/
260-
addLink(link: SpanLink): this;
260+
addLink(link: SpanLink | unknown): this;
261261

262262
/**
263263
* Associates this span with multiple related spans. See {@link addLink} for more details.
264264
*
265265
* Prefer setting links directly when starting a span (e.g. `Sentry.startSpan()`) as some context information is only available during span creation.
266266
* @param links - Array of links to associate with this span
267267
*/
268-
addLinks(links: SpanLink[]): this;
268+
addLinks(links: SpanLink[] | unknown): this;
269269

270270
/**
271271
* NOT USED IN SENTRY, only added for compliance with OTEL Span interface

0 commit comments

Comments
 (0)