Skip to content

Commit b09326f

Browse files
authored
fix: include application and environment in telemetry context (#20)
1 parent 8c66d4d commit b09326f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/provider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ export class HyphenProvider implements Provider {
9696
};
9797

9898
try {
99+
const { application, environment} = this.options;
99100
const payload: TelemetryPayload = {
100-
context: hookContext.context as HyphenEvaluationContext,
101+
context: {...hookContext.context, application, environment} as HyphenEvaluationContext,
101102
data: { toggle: parsedEvaluationDetails as Evaluation},
102103
};
103104

0 commit comments

Comments
 (0)