Spaces:
Paused
Paused
Download node_modules/@opentelemetry/api/build/src/trace/link.d.ts from Huzaifa1313/Prof_app: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/spaces/Huzaifa1313/Prof_app/resolve/main/node_modules/%40opentelemetry/api/build/src/trace/link.d.ts
- Command line
-
hf download hf://spaces/Huzaifa1313/Prof_app/node_modules/@opentelemetry/api/build/src/trace/link.d.ts
-
curl -L -o link.d.ts https://huggingface.co/spaces/Huzaifa1313/Prof_app/resolve/main/node_modules/%40opentelemetry/api/build/src/trace/link.d.ts
1.3 kB
| import type { SpanAttributes } from './attributes'; | |
| import type { SpanContext } from './span_context'; | |
| /** | |
| * A pointer from the current {@link Span} to another span in the same trace or | |
| * in a different trace. | |
| * Few examples of Link usage. | |
| * 1. Batch Processing: A batch of elements may contain elements associated | |
| * with one or more traces/spans. Since there can only be one parent | |
| * SpanContext, Link is used to keep reference to SpanContext of all | |
| * elements in the batch. | |
| * 2. Public Endpoint: A SpanContext in incoming client request on a public | |
| * endpoint is untrusted from service provider perspective. In such case it | |
| * is advisable to start a new trace with appropriate sampling decision. | |
| * However, it is desirable to associate incoming SpanContext to new trace | |
| * initiated on service provider side so two traces (from Client and from | |
| * Service Provider) can be correlated. | |
| * | |
| * @since 1.0.0 | |
| */ | |
| export interface Link { | |
| /** The {@link SpanContext} of a linked span. */ | |
| context: SpanContext; | |
| /** A set of {@link SpanAttributes} on the link. */ | |
| attributes?: SpanAttributes; | |
| /** Count of attributes of the link that were dropped due to collection limits */ | |
| droppedAttributesCount?: number; | |
| } | |
| //# sourceMappingURL=link.d.ts.map |