Skip to content

Commit

Permalink
fixup! feat(otlp-transformer)!: remove internal types and functions f…
Browse files Browse the repository at this point in the history
…rom public API
  • Loading branch information
pichlermarc committed Nov 25, 2024
1 parent 4797283 commit 50093e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions experimental/packages/otlp-transformer/test/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions experimental/packages/otlp-transformer/test/trace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50093e7

Please sign in to comment.