Skip to content

Commit

Permalink
chore: replacing console with diag (#2006)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
  • Loading branch information
obecny and vmarchaud authored Mar 10, 2021
1 parent 60c04b1 commit 2f169a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/opentelemetry-sdk-node/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { TextMapPropagator } from '@opentelemetry/api';
import { diag, TextMapPropagator } from '@opentelemetry/api';
import { metrics } from '@opentelemetry/api-metrics';
import { ContextManager } from '@opentelemetry/api';
import { MeterConfig, MeterProvider } from '@opentelemetry/metrics';
Expand Down Expand Up @@ -103,7 +103,7 @@ export class NodeSDK {
if (configuration.instrumentations) {
instrumentations = configuration.instrumentations;
} else if (configuration.plugins) {
console.error('plugins option is deprecated');
diag.error('plugins option is deprecated');
instrumentations = configuration.plugins;
}
this._instrumentations = instrumentations;
Expand Down

0 comments on commit 2f169a5

Please sign in to comment.