-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(load-generator): add spans for feature flag evaluation #2119
base: main
Are you sure you want to change the base?
feat(load-generator): add spans for feature flag evaluation #2119
Conversation
a44853c
to
f16ce12
Compare
As the span was created before the feature flag evaluation, we are now creating a span for each task, so we can enhance it with information when needed. Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
f16ce12
to
28bba13
Compare
I don't understand this PR. The
|
yes the client get does that, but when we "flood home" we do not have the span created before the feature flag evaluation starts, with this we have now a span with the flag evaluation result added. (i added the spans for the others only for consistency. The post will never be really linked to the span, because this is the OFREP protocol. The provider periodically fetched flag changes and stores them. The evaluation it self only uses the store information. there is no relation between flag configuration fetches, and flag evaluations. Now the flag result is added to the span of the load generation. (i agree that adding it for the others is maybe overkill) |
i think we might have been talking about different things. i thought it is important to add the evaluation event to the span of the "flood home" action - which is actually the important information of the evaluation. Fetching the flags used to be a call all the time with the rpc mode. but with the ofrep mode, we are fetching a generate flag configuration regularly, and have this configuration stored locally, and never doing a call for a flag evaluation to the host system. We could eg. only poll for this changes every x seconds, currently it is every 5 seconds. |
@mviitane and @puckpuck I'd like you opinion here. This one here add spans to each call of the load-gen. In a real life scenario, I'd love to be able to see all feature flag evaluation during my user journey, but I'm not sure if we want that for load-generator. @aepfli would be fine in closing this issue, and I'm already happy with the What do you think? |
I don't think we need a span for each loadgen flag evaluation. We can kill close this PR. |
Changes
As the span was created before the feature flag evaluation, we are now creating a span for each task, so we can enhance it with information when needed.
Merge Requirements
For new features contributions, please make sure you have completed the following
essential items:
CHANGELOG.md
updated to document new feature additionsMaintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.