Skip to content
Prev Previous commit
chore(resources): replace leftovers
  • Loading branch information
david-luna committed Sep 25, 2024
commit 15bb139ddad801079114f04f53492d8bd7b8587b
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ import {
Span,
SpanExporter,
} from '../../../src';
import { context } from '@opentelemetry/api';
import { Attributes, context } from '@opentelemetry/api';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note for reviewer: leftover from #5009

import { TestRecordOnlySampler } from './TestRecordOnlySampler';
import { TestTracingSpanExporter } from './TestTracingSpanExporter';
import { TestStackContextManager } from './TestStackContextManager';
import { BatchSpanProcessorBase } from '../../../src/export/BatchSpanProcessorBase';
import { Resource, ResourceAttributes } from '@opentelemetry/resources';
import { Resource } from '@opentelemetry/resources';

function createSampledSpan(spanName: string): Span {
const tracer = new BasicTracerProvider({
Expand Down Expand Up @@ -442,7 +442,7 @@ describe('BatchSpanProcessorBase', () => {
const tracer = new BasicTracerProvider({
resource: new Resource(
{},
new Promise<ResourceAttributes>(resolve => {
new Promise<Attributes>(resolve => {
setTimeout(() => resolve({ async: 'fromasync' }), 1);
})
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import {
} from '../../../src';
import { TestStackContextManager } from './TestStackContextManager';
import { TestTracingSpanExporter } from './TestTracingSpanExporter';
import { Resource, ResourceAttributes } from '@opentelemetry/resources';
import { Attributes } from '@opentelemetry/api';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note for reviewer: leftover from #5009

import { Resource } from '@opentelemetry/resources';
import { TestExporterWithDelay } from './TestExporterWithDelay';

describe('SimpleSpanProcessor', () => {
Expand Down Expand Up @@ -164,7 +165,7 @@ describe('SimpleSpanProcessor', () => {
const providerWithAsyncResource = new BasicTracerProvider({
resource: new Resource(
{},
new Promise<ResourceAttributes>(resolve => {
new Promise<Attributes>(resolve => {
setTimeout(() => resolve({ async: 'fromasync' }), 1);
})
),
Expand Down Expand Up @@ -205,7 +206,7 @@ describe('SimpleSpanProcessor', () => {
const providerWithAsyncResource = new BasicTracerProvider({
resource: new Resource(
{},
new Promise<ResourceAttributes>(resolve => {
new Promise<Attributes>(resolve => {
setTimeout(() => resolve({ async: 'fromasync' }), 1);
})
),
Expand Down