Skip to content

Commit b5409d7

Browse files
authored
refactor(otlp-transformer): use explicit exports (#4785)
* refactor(otlp-transformer): use explicit exports * chore: add changelog entry * Update experimental/CHANGELOG.md * Update experimental/CHANGELOG.md
1 parent c280a08 commit b5409d7

File tree

2 files changed

+66
-6
lines changed

2 files changed

+66
-6
lines changed

experimental/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All notable changes to experimental packages in this project will be documented
1010
### :rocket: (Enhancement)
1111

1212
* refactor(instrumentation-fetch): move fetch to use SEMATRR [#4632](https://github.com/open-telemetry/opentelemetry-js/pull/4632)
13+
* refactor(otlp-transformer): use explicit exports [#4785](https://github.com/open-telemetry/opentelemetry-js/pull/4785) @pichlermarc
1314

1415
### :bug: (Bug Fix)
1516

experimental/packages/otlp-transformer/src/index.ts

Lines changed: 65 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,71 @@
1414
* limitations under the License.
1515
*/
1616

17-
export * from './common/types';
18-
export * from './common';
19-
export * from './metrics/types';
20-
export * from './resource/types';
21-
export * from './trace/types';
22-
export * from './logs/types';
17+
export {
18+
OtlpEncodingOptions,
19+
IKeyValueList,
20+
IKeyValue,
21+
IInstrumentationScope,
22+
IArrayValue,
23+
LongBits,
24+
IAnyValue,
25+
Fixed64,
26+
} from './common/types';
27+
export {
28+
SpanContextEncodeFunction,
29+
toLongBits,
30+
OptionalSpanContextEncodeFunction,
31+
getOtlpEncoder,
32+
Encoder,
33+
HrTimeEncodeFunction,
34+
encodeAsLongBits,
35+
encodeAsString,
36+
hrTimeToNanos,
37+
} from './common';
38+
export {
39+
IExportMetricsPartialSuccess,
40+
IValueAtQuantile,
41+
ISummaryDataPoint,
42+
ISummary,
43+
ISum,
44+
IScopeMetrics,
45+
IResourceMetrics,
46+
INumberDataPoint,
47+
IHistogramDataPoint,
48+
IHistogram,
49+
IExponentialHistogramDataPoint,
50+
IExponentialHistogram,
51+
IMetric,
52+
IGauge,
53+
IExemplar,
54+
EAggregationTemporality,
55+
IExportMetricsServiceRequest,
56+
IExportMetricsServiceResponse,
57+
IBuckets,
58+
} from './metrics/types';
59+
export { IResource } from './resource/types';
60+
export {
61+
IExportTracePartialSuccess,
62+
IStatus,
63+
EStatusCode,
64+
ILink,
65+
IEvent,
66+
IScopeSpans,
67+
ISpan,
68+
IResourceSpans,
69+
ESpanKind,
70+
IExportTraceServiceResponse,
71+
IExportTraceServiceRequest,
72+
} from './trace/types';
73+
export {
74+
IExportLogsServiceResponse,
75+
IScopeLogs,
76+
IExportLogsServiceRequest,
77+
IResourceLogs,
78+
ILogRecord,
79+
IExportLogsPartialSuccess,
80+
ESeverityNumber,
81+
} from './logs/types';
2382

2483
export { createExportTraceServiceRequest } from './trace';
2584
export { createExportMetricsServiceRequest } from './metrics';

0 commit comments

Comments
 (0)