UNPKG

2.64 kBJavaScriptView Raw
1/*
2 * Copyright The OpenTelemetry Authors
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16export * from './baggage/types';
17export { baggageEntryMetadataFromString } from './baggage/utils';
18export * from './common/Exception';
19export * from './common/Time';
20export * from './common/Attributes';
21export * from './diag';
22export * from './propagation/TextMapPropagator';
23export * from './trace/attributes';
24export * from './trace/link';
25export * from './trace/ProxyTracer';
26export * from './trace/ProxyTracerProvider';
27export * from './trace/Sampler';
28export * from './trace/SamplingResult';
29export * from './trace/span_context';
30export * from './trace/span_kind';
31export * from './trace/span';
32export * from './trace/SpanOptions';
33export * from './trace/status';
34export * from './trace/trace_flags';
35export * from './trace/trace_state';
36export { createTraceState } from './trace/internal/utils';
37export * from './trace/tracer_provider';
38export * from './trace/tracer';
39export * from './trace/tracer_options';
40export { isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils';
41export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, } from './trace/invalid-span-constants';
42export * from './context/context';
43export * from './context/types';
44import { ContextAPI } from './api/context';
45/** Entrypoint for context API */
46export var context = ContextAPI.getInstance();
47import { TraceAPI } from './api/trace';
48/** Entrypoint for trace API */
49export var trace = TraceAPI.getInstance();
50import { PropagationAPI } from './api/propagation';
51/** Entrypoint for propagation API */
52export var propagation = PropagationAPI.getInstance();
53import { DiagAPI } from './api/diag';
54/**
55 * Entrypoint for Diag API.
56 * Defines Diagnostic handler used for internal diagnostic logging operations.
57 * The default provides a Noop DiagLogger implementation which may be changed via the
58 * diag.setLogger(logger: DiagLogger) function.
59 */
60export var diag = DiagAPI.instance();
61export default {
62 trace: trace,
63 context: context,
64 propagation: propagation,
65 diag: diag,
66};
67//# sourceMappingURL=index.js.map
\No newline at end of file