Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit ae226fa

Browse files
paolomainardimayurkale22
authored andcommitted
fix pjsonVersion (#686)
1 parent 80db31f commit ae226fa

File tree

1 file changed

+2
-2
lines changed
  • packages/opencensus-exporter-jaeger/src

1 file changed

+2
-2
lines changed

packages/opencensus-exporter-jaeger/src/jaeger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export interface JaegerTraceExporterOptions extends ExporterConfig {
4848
// to the original .ts file.
4949
let pjsonVersion: string;
5050
try {
51-
pjsonVersion = require('../../package.json');
51+
pjsonVersion = require('../../package.json').version;
5252
} catch {
53-
pjsonVersion = require('../package.json');
53+
pjsonVersion = require('../package.json').version;
5454
}
5555

5656
/** Format and sends span information to Jaeger */

0 commit comments

Comments
 (0)