Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './GitHubDetector';
export { gitHubDetector } from './GitHubDetector';
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './detectors';
export { gitHubDetector } from './detectors';
4 changes: 2 additions & 2 deletions incubator/opentelemetry-sampler-aws-xray/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './remote-sampler';
export { AWSXRayRemoteSamplerConfig } from './types';
export { AWSXRayRemoteSampler, _AWSXRayRemoteSampler } from './remote-sampler';
export type { AWSXRayRemoteSamplerConfig } from './types';
3 changes: 1 addition & 2 deletions metapackages/auto-instrumentations-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export {
getNodeAutoInstrumentations,
getResourceDetectorsFromEnv as getResourceDetectors,
InstrumentationConfigMap,
} from './utils';
export type { InstrumentationConfigMap } from './utils';
4 changes: 2 additions & 2 deletions metapackages/auto-instrumentations-web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { getWebAutoInstrumentations, InstrumentationConfigMap } from './utils';
export { getWebAutoInstrumentations } from './utils';
export type { InstrumentationConfigMap } from './utils';
3 changes: 2 additions & 1 deletion packages/baggage-log-record-processor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
*/

export { BaggageLogRecordProcessor } from './baggage-log-record-processor';
export { ALLOW_ALL_BAGGAGE_KEYS, BaggageKeyPredicate } from './types';
export { ALLOW_ALL_BAGGAGE_KEYS } from './types';
export type { BaggageKeyPredicate } from './types';
3 changes: 2 additions & 1 deletion packages/baggage-span-processor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
*/

export { BaggageSpanProcessor } from './baggage-span-processor';
export { ALLOW_ALL_BAGGAGE_KEYS, BaggageKeyPredicate } from './types';
export { ALLOW_ALL_BAGGAGE_KEYS } from './types';
export type { BaggageKeyPredicate } from './types';
7 changes: 4 additions & 3 deletions packages/opentelemetry-host-metrics/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

export * from './BaseMetrics';
export * from './metric';
export * from './types';
export { BaseMetrics } from './BaseMetrics';
export type { MetricsCollectorConfig } from './BaseMetrics';
export { HostMetrics } from './metric';
export type { CpuUsageData, MemoryData, ProcessCpuUsageData } from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './platform';
export { AWSXRayIdGenerator } from './platform';
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
* limitations under the License.
*/

export * from './AWSXRayIdGenerator';
export { AWSXRayIdGenerator } from './AWSXRayIdGenerator';
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './node';
export { AWSXRayIdGenerator } from './node';
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
* limitations under the License.
*/

export * from './AWSXRayIdGenerator';
export { AWSXRayIdGenerator } from './AWSXRayIdGenerator';
5 changes: 2 additions & 3 deletions packages/opentelemetry-test-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,19 @@ export { OtlpSpanKind } from './otlp-types';
export {
createTestNodeSdk,
runTestFixture,
TestSpan,
RunTestFixtureOptions,
TestCollector,
} from './test-fixtures';
export type { TestSpan, RunTestFixtureOptions } from './test-fixtures';
export {
assertPropagation,
assertSpan,
cleanUpDocker,
getPackageVersion,
initMeterProvider,
TimedEvent,
startDocker,
TestMetricReader,
} from './test-utils';
export type { TimedEvent } from './test-utils';
export {
getInstrumentation,
getTestMemoryExporter,
Expand Down
14 changes: 11 additions & 3 deletions packages/opentelemetry-test-utils/src/instrumentations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ import { getInstrumentation } from './instrumentation-singleton';
import { registerInstrumentationTestingProvider } from './otel-default-provider';
import { resetMemoryExporter } from './otel-provider-api';

export * from './instrumentation-singleton';
export * from './otel-provider-api';
export * from './otel-default-provider';
export {
getInstrumentation,
registerInstrumentationTesting,
} from './instrumentation-singleton';
export {
getTestMemoryExporter,
getTestSpans,
resetMemoryExporter,
setTestMemoryExporter,
} from './otel-provider-api';
export { registerInstrumentationTestingProvider } from './otel-default-provider';

export const mochaHooks = {
beforeAll(done: Function) {
Expand Down
22 changes: 20 additions & 2 deletions plugins/node/instrumentation-amqplib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './amqplib';
export * from './types';
export { AmqplibInstrumentation } from './amqplib';
export { DEFAULT_CONFIG, EndOperation } from './types';
export type {
AmqplibConsumeCustomAttributeFunction,
AmqplibConsumeEndCustomAttributeFunction,
AmqplibInstrumentationConfig,
AmqplibPublishConfirmCustomAttributeFunction,
AmqplibPublishCustomAttributeFunction,
AmqplibPublishOptions,
CommonMessageFields,
ConsumeEndInfo,
ConsumeInfo,
ConsumeMessage,
ConsumeMessageFields,
Message,
MessageFields,
MessageProperties,
PublishConfirmedInfo,
PublishInfo,
} from './types';
5 changes: 3 additions & 2 deletions plugins/node/instrumentation-cucumber/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export { CucumberInstrumentation } from './instrumentation';
export { AttributeNames } from './types';
export type { CucumberInstrumentationConfig } from './types';
4 changes: 2 additions & 2 deletions plugins/node/instrumentation-dataloader/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
* limitations under the License.
*/

export * from './types';
export * from './instrumentation';
export { DataloaderInstrumentation } from './instrumentation';
export type { DataloaderInstrumentationConfig } from './types';
14 changes: 12 additions & 2 deletions plugins/node/instrumentation-fs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export { FsInstrumentation } from './instrumentation';
export type {
CreateHook,
EndHook,
FMember,
FPMember,
FsInstrumentationConfig,
FunctionProperties,
FunctionPropertyNames,
FunctionPropertyNamesTwoLevels,
Member,
} from './types';
10 changes: 8 additions & 2 deletions plugins/node/instrumentation-kafkajs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export { KafkaJsInstrumentation } from './instrumentation';
export type {
KafkaConsumerCustomAttributeFunction,
KafkaJsInstrumentationConfig,
KafkaProducerCustomAttributeFunction,
KafkajsMessage,
MessageInfo,
} from './types';
2 changes: 1 addition & 1 deletion plugins/node/instrumentation-lru-memoizer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
* limitations under the License.
*/

export * from './instrumentation';
export { LruMemoizerInstrumentation } from './instrumentation';
10 changes: 8 additions & 2 deletions plugins/node/instrumentation-mongoose/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './mongoose';
export * from './types';
export { MongooseInstrumentation } from './mongoose';
export type {
DbStatementSerializer,
MongooseInstrumentationConfig,
MongooseResponseCustomAttributesFunction,
ResponseInfo,
SerializerPayload,
} from './types';
4 changes: 2 additions & 2 deletions plugins/node/instrumentation-runtime-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export { RuntimeNodeInstrumentation } from './instrumentation';
export type { RuntimeNodeInstrumentationConfig } from './types';
11 changes: 8 additions & 3 deletions plugins/node/instrumentation-socket.io/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './socket.io';
export * from './types';
export * from './AttributeNames';
export { SocketIoInstrumentation } from './socket.io';
export { SocketIoInstrumentationAttributes } from './AttributeNames';
export { defaultSocketIoPath } from './types';
export type {
SocketIoHookFunction,
SocketIoHookInfo,
SocketIoInstrumentationConfig,
} from './types';
4 changes: 2 additions & 2 deletions plugins/node/instrumentation-tedious/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export { TediousInstrumentation } from './instrumentation';
export type { TediousInstrumentationConfig } from './types';
9 changes: 7 additions & 2 deletions plugins/node/instrumentation-typeorm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './typeorm';
export * from './types';
export { TypeormInstrumentation } from './typeorm';
export { ExtendedDatabaseAttribute } from './types';
export type {
HookInfo,
TypeormInstrumentationConfig,
TypeormResponseCustomAttributesFunction,
} from './types';
7 changes: 5 additions & 2 deletions plugins/node/instrumentation-typeorm/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './get-func-param-names';
export * from './suppressTracing';
export { getParamNames } from './get-func-param-names';
export {
isTypeormInternalTracingSuppressed,
suppressTypeormInternalTracing,
} from './suppressTracing';
12 changes: 10 additions & 2 deletions plugins/node/instrumentation-undici/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@
* limitations under the License.
*/

export * from './undici';
export * from './types';
export { UndiciInstrumentation } from './undici';
export type {
IgnoreRequestFunction,
RequestHookFunction,
ResponseHookFunction,
StartSpanHookFunction,
UndiciInstrumentationConfig,
UndiciRequest,
UndiciResponse,
} from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export {
AwsLambdaInstrumentation,
lambdaMaxInitInMilliseconds,
} from './instrumentation';
export type {
AwsLambdaInstrumentationConfig,
EventContextExtractor,
RequestHook,
ResponseHook,
} from './types';
16 changes: 14 additions & 2 deletions plugins/node/opentelemetry-instrumentation-aws-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './aws-sdk';
export * from './types';
export { AwsInstrumentation } from './aws-sdk';
export type {
AwsSdkDynamoDBStatementSerializer,
AwsSdkInstrumentationConfig,
AwsSdkRequestCustomAttributeFunction,
AwsSdkRequestHookInformation,
AwsSdkResponseCustomAttributeFunction,
AwsSdkResponseHookInformation,
AwsSdkSqsProcessCustomAttributeFunction,
AwsSdkSqsProcessHookInformation,
CommandInput,
NormalizedRequest,
NormalizedResponse,
} from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export * from './OpenTelemetryBunyanStream';
export { BunyanInstrumentation } from './instrumentation';
export { OpenTelemetryBunyanStream } from './OpenTelemetryBunyanStream';
export type { BunyanInstrumentationConfig, LogHookFunction } from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,11 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './types';
export { CassandraDriverInstrumentation } from './instrumentation';
export type {
CassandraDriverInstrumentationConfig,
CassandraDriverResponseCustomAttributeFunction,
ResponseHookInfo,
ResultSet,
Row,
} from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@
* limitations under the License.
*/

export * from './enums/AttributeNames';
export * from './instrumentation';
export { ConnectInstrumentation, ANONYMOUS_NAME } from './instrumentation';
export {
AttributeNames,
ConnectNames,
ConnectTypes,
} from './enums/AttributeNames';
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*/

export { DnsInstrumentation } from './instrumentation';
export { DnsInstrumentationConfig, IgnoreMatcher } from './types';
export type { DnsInstrumentationConfig, IgnoreMatcher } from './types';
15 changes: 11 additions & 4 deletions plugins/node/opentelemetry-instrumentation-express/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
* limitations under the License.
*/

export * from './instrumentation';
export * from './enums/ExpressLayerType';
export * from './enums/AttributeNames';
export * from './types';
export { ExpressInstrumentation } from './instrumentation';
export { ExpressLayerType } from './enums/ExpressLayerType';
export { AttributeNames } from './enums/AttributeNames';
export type {
ExpressInstrumentationConfig,
ExpressRequestCustomAttributeFunction,
ExpressRequestInfo,
IgnoreMatcher,
LayerPathSegment,
SpanNameHook,
} from './types';
Loading