UNPKG

2.25 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 { baggageEntryMetadataFromString } from './baggage/utils';
17// Context APIs
18export { createContextKey, ROOT_CONTEXT } from './context/context';
19// Diag APIs
20export { DiagConsoleLogger } from './diag/consoleLogger';
21export { DiagLogLevel, } from './diag/types';
22// Metrics APIs
23export { createNoopMeter } from './metrics/NoopMeter';
24export { ValueType, } from './metrics/Metric';
25// Propagation APIs
26export { defaultTextMapGetter, defaultTextMapSetter, } from './propagation/TextMapPropagator';
27export { ProxyTracer } from './trace/ProxyTracer';
28export { ProxyTracerProvider } from './trace/ProxyTracerProvider';
29export { SamplingDecision } from './trace/SamplingResult';
30export { SpanKind } from './trace/span_kind';
31export { SpanStatusCode } from './trace/status';
32export { TraceFlags } from './trace/trace_flags';
33export { createTraceState } from './trace/internal/utils';
34export { isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils';
35export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, } from './trace/invalid-span-constants';
36// Split module-level variable definition into separate files to allow
37// tree-shaking on each api instance.
38import { context } from './context-api';
39import { diag } from './diag-api';
40import { metrics } from './metrics-api';
41import { propagation } from './propagation-api';
42import { trace } from './trace-api';
43// Named export.
44export { context, diag, metrics, propagation, trace };
45// Default export.
46export default {
47 context: context,
48 diag: diag,
49 metrics: metrics,
50 propagation: propagation,
51 trace: trace,
52};
53//# sourceMappingURL=index.js.map
\No newline at end of file