Skip to content

Commit aaec7cc

Browse files
fix(sdk-trace-base): rename function
Signed-off-by: Svetlana Brennan <[email protected]>
1 parent 771f1f4 commit aaec7cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/opentelemetry-core/src/utils/environment.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ export function parseEnvironment(values: RAW_ENVIRONMENT): ENVIRONMENT {
286286
}
287287

288288
/**
289-
* Parse environment in node or browser without
289+
* Get environment in node or browser without
290290
* populating default values.
291291
*/
292-
export function parseEnvWithoutDefaults(): ENVIRONMENT {
292+
export function getEnvWithoutDefaults(): ENVIRONMENT {
293293
return typeof process !== 'undefined' ?
294294
parseEnvironment(process.env as RAW_ENVIRONMENT) :
295295
parseEnvironment(_globalThis as typeof globalThis & RAW_ENVIRONMENT);

packages/opentelemetry-sdk-trace-base/src/utility.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { SpanLimits, TracerConfig, GeneralLimits } from './types';
2020
import {
2121
DEFAULT_ATTRIBUTE_COUNT_LIMIT,
2222
DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,
23-
parseEnvWithoutDefaults,
23+
getEnvWithoutDefaults,
2424
} from '@opentelemetry/core';
2525

2626
/**
@@ -68,7 +68,7 @@ export function mergeConfig(userConfig: TracerConfig): TracerConfig & {
6868
export function reconfigureLimits(userConfig: TracerConfig): TracerConfig {
6969
const spanLimits = Object.assign({}, userConfig.spanLimits);
7070

71-
const parsedEnvConfig = parseEnvWithoutDefaults();
71+
const parsedEnvConfig = getEnvWithoutDefaults();
7272

7373
/**
7474
* Reassign span attribute count limit to use first non null value defined by user or use default value

0 commit comments

Comments
 (0)