Skip to content

Commit

Permalink
chore: use BasicTracerProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Nov 25, 2024
1 parent 4200fde commit dbe118f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
import { OTLPTraceExporter } from '../src';
import { ServerTestContext, startServer } from './utils';
import * as assert from 'assert';
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
import { SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base';
import {
SimpleSpanProcessor,
BasicTracerProvider,
} from '@opentelemetry/sdk-trace-base';

const testServiceDefinition = {
export: {
Expand Down Expand Up @@ -76,7 +78,7 @@ describe('OTLPTraceExporter', function () {

it('successfully exports data', async () => {
// arrange
const tracerProvider = new NodeTracerProvider({
const tracerProvider = new BasicTracerProvider({
spanProcessors: [
new SimpleSpanProcessor(
new OTLPTraceExporter({
Expand Down

0 comments on commit dbe118f

Please sign in to comment.