Skip to content

Commit d18088d

Browse files
committed
delete getExecutionId()
1 parent 859a7fe commit d18088d

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

docs/generated/api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ export interface EventFunctionWithCallback {
5858
(data: {}, context: Context, callback: Function): any;
5959
}
6060

61-
// @public
62-
export const getExecutionId: () => string | undefined;
63-
6461
// @public
6562
export type HandlerFunction<T = unknown, U = unknown> = HttpFunction | EventFunction | EventFunctionWithCallback | CloudEventFunction<T> | CloudEventFunctionWithCallback<T> | TypedFunction<T, U>;
6663

src/async_local_storage.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,3 @@ export function getCurrentContext(): ExecutionContext | undefined {
4646
}
4747
return asyncLocalStorage.getStore();
4848
}
49-
50-
export const getCurrentExecutionId = (): string | undefined => {
51-
return getCurrentContext()?.executionId;
52-
};

src/function_registry.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
JsonInvocationFormat,
2121
} from './functions';
2222
import {SignatureType} from './types';
23-
import {getCurrentExecutionId} from './async_local_storage';
2423

2524
interface RegisteredFunction<T, U> {
2625
signatureType: SignatureType;
@@ -66,14 +65,6 @@ export const isValidFunctionName = (functionName: string): boolean => {
6665
return regex.test(functionName);
6766
};
6867

69-
/**
70-
* Gets the request-specific execution id
71-
* @public
72-
*/
73-
export const getExecutionId = (): string | undefined => {
74-
return getCurrentExecutionId();
75-
};
76-
7768
/**
7869
* Get a declaratively registered function
7970
* @param functionName the name with which the function was registered

0 commit comments

Comments
 (0)