We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0373853 commit 8d2cdf5Copy full SHA for 8d2cdf5
packages/interceptors-opentelemetry/src/workflow/workflow-module-loader.ts
@@ -40,7 +40,9 @@ export function getWorkflowModule(): typeof WorkflowModule {
40
* Will throw if `@temporalio/workflow` is not available
41
*/
42
export function hasSdkFlag(flag: keyof SdkFlags): boolean {
43
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
44
const { SdkFlags } = require('@temporalio/workflow/lib/flags');
45
46
const { getActivator } = require('@temporalio/workflow/lib/global-attributes');
47
48
return getActivator().hasFlag(SdkFlags[flag]);
0 commit comments