forked from open-telemetry/opentelemetry-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
119 lines (118 loc) · 3.33 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { W3CBaggagePropagator } from './baggage/propagation/W3CBaggagePropagator';
export { AnchoredClock, Clock } from './common/anchored-clock';
export {
isAttributeKey,
isAttributeValue,
sanitizeAttributes,
} from './common/attributes';
export {
globalErrorHandler,
setGlobalErrorHandler,
} from './common/global-error-handler';
export { loggingErrorHandler } from './common/logging-error-handler';
export {
addHrTimes,
getTimeOrigin,
hrTime,
hrTimeDuration,
hrTimeToMicroseconds,
hrTimeToMilliseconds,
hrTimeToNanoseconds,
hrTimeToTimeStamp,
isTimeInput,
isTimeInputHrTime,
millisToHrTime,
timeInputToHrTime,
} from './common/time';
export {
ErrorHandler,
InstrumentationScope,
ShimWrapped,
TimeOriginLegacy,
} from './common/types';
export { hexToBinary } from './common/hex-to-binary';
export { ExportResult, ExportResultCode } from './ExportResult';
import {
getKeyPairs,
serializeKeyPairs,
parseKeyPairsIntoRecord,
parsePairKeyValue,
} from './baggage/utils';
export const baggageUtils = {
getKeyPairs,
serializeKeyPairs,
parseKeyPairsIntoRecord,
parsePairKeyValue,
};
export {
SDK_INFO,
_globalThis,
getEnv,
getEnvWithoutDefaults,
hexToBase64,
otperformance,
unrefTimer,
} from './platform';
export {
CompositePropagator,
CompositePropagatorConfig,
} from './propagation/composite';
export {
TRACE_PARENT_HEADER,
TRACE_STATE_HEADER,
W3CTraceContextPropagator,
parseTraceParent,
} from './trace/W3CTraceContextPropagator';
export {
RPCMetadata,
RPCType,
deleteRPCMetadata,
getRPCMetadata,
setRPCMetadata,
} from './trace/rpc-metadata';
export { AlwaysOffSampler } from './trace/sampler/AlwaysOffSampler';
export { AlwaysOnSampler } from './trace/sampler/AlwaysOnSampler';
export { ParentBasedSampler } from './trace/sampler/ParentBasedSampler';
export { TraceIdRatioBasedSampler } from './trace/sampler/TraceIdRatioBasedSampler';
export {
isTracingSuppressed,
suppressTracing,
unsuppressTracing,
} from './trace/suppress-tracing';
export { TraceState } from './trace/TraceState';
export {
DEFAULT_ATTRIBUTE_COUNT_LIMIT,
DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,
DEFAULT_ENVIRONMENT,
DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,
DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,
ENVIRONMENT,
RAW_ENVIRONMENT,
parseEnvironment,
} from './utils/environment';
export { merge } from './utils/merge';
export { TracesSamplerValues } from './utils/sampling';
export { TimeoutError, callWithTimeout } from './utils/timeout';
export { isUrlIgnored, urlMatches } from './utils/url';
export { isWrapped } from './utils/wrap';
export { BindOnceFuture } from './utils/callback';
export { VERSION } from './version';
import { _export } from './internal/exporter';
export const internal = {
_export,
};