Skip to content

Commit

Permalink
chore(oteldbexporter): do not use deprecated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Oct 23, 2024
1 parent 214a5a2 commit fd2c8b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/otelreceiver/oteldbexporter/oteldbexporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func createTracesExporter(
if err != nil {
return nil, err
}
return exporterhelper.NewTracesExporter(ctx, settings, cfg, tracestorage.NewConsumer(inserter).ConsumeTraces)
return exporterhelper.NewTraces(ctx, settings, cfg, tracestorage.NewConsumer(inserter).ConsumeTraces)
}

func createMetricsExporter(
Expand All @@ -57,7 +57,7 @@ func createMetricsExporter(
if err != nil {
return nil, err
}
return exporterhelper.NewMetricsExporter(ctx, settings, cfg, inserter.ConsumeMetrics)
return exporterhelper.NewMetrics(ctx, settings, cfg, inserter.ConsumeMetrics)
}

func createLogsExporter(
Expand All @@ -70,5 +70,5 @@ func createLogsExporter(
if err != nil {
return nil, err
}
return exporterhelper.NewLogsExporter(ctx, settings, cfg, logstorage.NewConsumer(inserter).ConsumeLogs)
return exporterhelper.NewLogs(ctx, settings, cfg, logstorage.NewConsumer(inserter).ConsumeLogs)
}

0 comments on commit fd2c8b7

Please sign in to comment.