From 50093e79e9be5f9f3dda6bbb1e1db15d1c1399f9 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Mon, 25 Nov 2024 19:17:22 +0100 Subject: [PATCH] fixup! feat(otlp-transformer)!: remove internal types and functions from public API --- experimental/packages/otlp-transformer/test/logs.test.ts | 7 ++----- experimental/packages/otlp-transformer/test/trace.test.ts | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/experimental/packages/otlp-transformer/test/logs.test.ts b/experimental/packages/otlp-transformer/test/logs.test.ts index e1e930b1ebb..0ad5b45819d 100644 --- a/experimental/packages/otlp-transformer/test/logs.test.ts +++ b/experimental/packages/otlp-transformer/test/logs.test.ts @@ -17,17 +17,14 @@ import { HrTime, TraceFlags } from '@opentelemetry/api'; import { InstrumentationScope, hexToBinary } from '@opentelemetry/core'; import { Resource } from '@opentelemetry/resources'; import * as assert from 'assert'; -import { - createExportLogsServiceRequest, - ProtobufLogsSerializer, - JsonLogsSerializer, -} from '../src'; +import { ProtobufLogsSerializer, JsonLogsSerializer } from '../src'; import { ReadableLogRecord } from '@opentelemetry/sdk-logs'; import { SeverityNumber } from '@opentelemetry/api-logs'; import { toBase64 } from './utils'; import * as root from '../src/generated/root'; import { OtlpEncodingOptions } from '../src/common/types'; import { ESeverityNumber, IExportLogsServiceRequest } from '../src/logs/types'; +import {createExportLogsServiceRequest} from "../src/logs"; function createExpectedLogJson( options: OtlpEncodingOptions diff --git a/experimental/packages/otlp-transformer/test/trace.test.ts b/experimental/packages/otlp-transformer/test/trace.test.ts index 74a996ba9ed..dd6354ea4d6 100644 --- a/experimental/packages/otlp-transformer/test/trace.test.ts +++ b/experimental/packages/otlp-transformer/test/trace.test.ts @@ -19,14 +19,11 @@ import { TraceState, hexToBinary } from '@opentelemetry/core'; import { Resource } from '@opentelemetry/resources'; import { ReadableSpan } from '@opentelemetry/sdk-trace-base'; import * as assert from 'assert'; -import { - createExportTraceServiceRequest, - ProtobufTraceSerializer, - JsonTraceSerializer, -} from '../src'; +import { ProtobufTraceSerializer, JsonTraceSerializer } from '../src'; import { toBase64 } from './utils'; import { OtlpEncodingOptions } from '../src/common/types'; import { ESpanKind, EStatusCode } from '../src/trace/types'; +import { createExportTraceServiceRequest } from '../src/trace'; function createExpectedSpanJson(options: OtlpEncodingOptions) { const useHex = options.useHex ?? false;