-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Clean up and correct properties to producer and consumers created by Functions/Sinks/Sources #3315
Clean up and correct properties to producer and consumers created by Functions/Sinks/Sources #3315
Conversation
@cckellogg please take a look as well |
properties.put("application", "pulsar-sink"); | ||
break; | ||
} | ||
properties.put("id", fullyQualifiedInstanceId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have a name field too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could have separate fields for tenant, namespace, and name. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think just a field with fully qualified name is fine
maybe:
application = pulsar-function|pulsar-sink|pulsar-source
id = tenant/namespace/name
instanceId = instanceId
what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cckellogg sounds good. I have updated the PR
Motivation
The metadata specified in producers and consumers created by functions, sinks, and sources can help with debugging.
This PR aims improving that aspect as well as add the metadata to python functions as well
Modifications
Example of what the meta looks like: