You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/06 03:00:18 UTC
[GitHub] [pulsar-client-go] liuhao2050 opened a new issue, #803: Add a Context for `pulsar.Message` interface to pass values from middle functions
liuhao2050 opened a new issue, #803:
URL: https://github.com/apache/pulsar-client-go/issues/803
Receive method of Consumer returns Message directly, but if we want attach something(ex SpanContext) in Receive method to context, we can't bring it out without change type of Message interface.
So, it is possible to add a Context or find some other way to set a context for Message ?
```go
type Consumer interface {
Receive(context.Context) (Message, error)
...
}
```
Thank you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org