-
Notifications
You must be signed in to change notification settings - Fork 893
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
CloudEvents: relax requirement levels #2600
Comments
@joaopgrassi what do you think? I can do the change if you're ok with it. |
Hi @lmolkova !
👍 About the others:
|
ah, right! sorry for the confusion
recommended sounds reasonable and I think we can suggest skipping if default ( |
Not sure, do we really need to skip it? What is your concern in always having it? My rationale is it's a required attribute in the CloudEvents spec, so making it optinal/not always present here might be odd since it goes against what it's in their spec. I know we are not the same thing but.. maybe keeping it consistent is better? And if people really think it's unecessary, using |
@joaopgrassi the only worry is redundancy: while only |
Sounds good then! Would you submit the PR? Or should I do it? Either is fine with me. Feel free to ping me for the approval if you open :) |
@joaopgrassi Thanks! I'll send the PR, I want to merge #2594 first so I can use new requirement levels here properly. |
While CloudEvents spec requires most of the required attributes to be present on the event, not all of them may be required for telemetry purposes.
event_source
+event_id
would uniquely identify the event, so let's keep themrequired
.For others requirement level could potentially be relaxed:
-event_subject
is optional per CloudEvents specevent_spec_version
is probably mostly static and rarely changed. Making itrecommended
oroptional
seem to be more reasonableevent_type
: can it becomerecommended
?Recommended attributes would still be populated by default unless there are strong reasons not to. Instrumentation may provide a way to disable them explicitly.
The text was updated successfully, but these errors were encountered: