Skip to content
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

DM-43082: Knative Time Header #20

Closed
wants to merge 1 commit into from
Closed

Conversation

dspeck1
Copy link
Collaborator

@dspeck1 dspeck1 commented Dec 3, 2024

Adds time to knative header. Used to track time it takes from when fan out message sent to when it is loaded in prompt processing.

message generation to when the message is loaded by a knative serving
pod in prompt processing.  Time header requires string and is converted
back to float in prompt processing.
@dspeck1 dspeck1 requested a review from kfindeisen December 3, 2024 15:24
Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I confirm that this diff, by itself, is not a breaking change to the nextVisit format (the PP side is another story).

attributes = {
"type": "com.example.kafka",
"source": topic,
"time": str(time.time())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth moving the "Time header requires string and is converted back to float in prompt processing." from the commit message to a comment, because this really looks strange at first glance.

@dspeck1 dspeck1 closed this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants