Skip to content

Commit

Permalink
fix: Use exported types only (#49)
Browse files Browse the repository at this point in the history
fix: Use exported types only
  • Loading branch information
rtuin authored Jan 2, 2025
1 parent d2dcdf0 commit 3cfcc83
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ import {
import { logs } from '@opentelemetry/api-logs';
import { CompositeLogRecordExporter } from '../../logging/exporters/composite-log-record.exporter';
import { GlobalProviders } from '../../globals';
import {
SEMRESATTRS_SERVICE_NAME
} from '@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes';
import { Entries } from '../types/entries.type';
import { NodeSDK } from '@opentelemetry/sdk-node';
import { MeterProvider } from '@opentelemetry/sdk-metrics';
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';

export interface IOpenTelemetryBuilder {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Counter, Histogram } from '@opentelemetry/api';
import { MetricOptions as OtelMetricOptions } from '@opentelemetry/api/build/src/metrics/Metric';
import { MetricOptions as OtelMetricOptions } from '@opentelemetry/api';
import { Gauge } from '../metrics/gauge';

export type MetricTypeMap = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Sampler, SpanExporter, SpanProcessor } from '@opentelemetry/sdk-trace-b
import { OpenTelemetryTracingOptions } from '../models/tracing-options.model';
import * as assert from 'assert';
import { InvalidOptionsError } from '../../core/errors/invalid-options.error';
import { Instrumentation } from '@opentelemetry/instrumentation/build/src/types';
import { Instrumentation } from '@opentelemetry/instrumentation';

export interface IOpenTelemetryTracingOptionsBuilder
extends OptionsBuilder<OpenTelemetryTracingOptions> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SpanOptions as OTELSpanOptions } from '@opentelemetry/api/build/src/trace/SpanOptions';
import { SpanOptions as OTELSpanOptions } from '@opentelemetry/api';

export interface SpanOptions extends OTELSpanOptions {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Sampler, SpanExporter, SpanProcessor } from '@opentelemetry/sdk-trace-base';
import { Instrumentation } from '@opentelemetry/instrumentation/build/src/types';
import { Instrumentation } from '@opentelemetry/instrumentation';

export interface OpenTelemetryTracingOptions {
sampler: Sampler;
Expand Down

0 comments on commit 3cfcc83

Please sign in to comment.