Skip to content

Commit

Permalink
more updates to otel-core for esm
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDanielson committed Jan 5, 2024
1 parent 3e0fb8f commit cc4923b
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions packages/opentelemetry-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export * from './common/types.js';
export * from './common/hex-to-binary.js';
export * from './ExportResult.js';
export * as baggageUtils from './baggage/utils.js';
export * from './platform';
export * from './propagation/composite.js';
export * from './trace/W3CTraceContextPropagator.js';
export * from './trace/IdGenerator.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { IdGenerator } from '../../trace/IdGenerator';
import { IdGenerator } from '../../trace/IdGenerator.js';

const SPAN_ID_BYTES = 8;
const TRACE_ID_BYTES = 16;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import {
ENVIRONMENT,
RAW_ENVIRONMENT,
parseEnvironment,
} from '../../utils/environment';
import { _globalThis } from './globalThis';
} from '../../utils/environment.js';
import { _globalThis } from './globalThis.js';

/**
* Gets the environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { hexToBinary } from '../../common/hex-to-binary';
import { hexToBinary } from '../../common/hex-to-binary.js';

export function hexToBase64(hexStr: string): string {
return btoa(String.fromCharCode(...hexToBinary(hexStr)));
Expand Down
14 changes: 7 additions & 7 deletions packages/opentelemetry-core/src/platform/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

export * from './environment';
export * from './globalThis';
export * from './hex-to-base64';
export * from './RandomIdGenerator';
export * from './performance';
export * from './sdk-info';
export * from './timer-util';
export * from './environment.js';
export * from './globalThis.js';
export * from './hex-to-base64.js';
export * from './RandomIdGenerator.js';
export * from './performance.js';
export * from './sdk-info.js';
export * from './timer-util.js';
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { VERSION } from '../../version';
import { VERSION } from '../../version.js';
import {
TelemetrySdkLanguageValues,
SemanticResourceAttributes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { IdGenerator } from '../../trace/IdGenerator';
import { IdGenerator } from '../../trace/IdGenerator.js';
const SPAN_ID_BYTES = 8;
const TRACE_ID_BYTES = 16;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
ENVIRONMENT,
RAW_ENVIRONMENT,
parseEnvironment,
} from '../../utils/environment';
} from '../../utils/environment.js';

/**
* Gets the environment variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { hexToBinary } from '../../common/hex-to-binary';
import { hexToBinary } from '../../common/hex-to-binary.js';

export function hexToBase64(hexStr: string): string {
return Buffer.from(hexToBinary(hexStr)).toString('base64');
Expand Down
14 changes: 7 additions & 7 deletions packages/opentelemetry-core/src/platform/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

export * from './environment';
export * from './globalThis';
export * from './hex-to-base64';
export * from './RandomIdGenerator';
export * from './performance';
export * from './sdk-info';
export * from './timer-util';
export * from './environment.js';
export * from './globalThis.js';
export * from './hex-to-base64.js';
export * from './RandomIdGenerator.js';
export * from './performance.js';
export * from './sdk-info.js';
export * from './timer-util.js';
2 changes: 1 addition & 1 deletion packages/opentelemetry-core/src/platform/node/sdk-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { VERSION } from '../../version';
import { VERSION } from '../../version.js';
import {
TelemetrySdkLanguageValues,
SemanticResourceAttributes,
Expand Down

0 comments on commit cc4923b

Please sign in to comment.