You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A zabbix.NewWithContext(ctx context.Context) could allow providing a context, that would be stored in the zabbix.Context object and used in httpPost, by calling http.NewRequestWithContext instead of http.NewRequest. Or maybe adding a WithContext method on the zabbix.Context strect.
I especially think of a context.WithTimeout that would provide the ability to fail if Zabbix is too slow to respond or when it is unreachable in certain circumstances.
The text was updated successfully, but these errors were encountered:
A
zabbix.NewWithContext(ctx context.Context)
could allow providing a context, that would be stored in thezabbix.Context
object and used inhttpPost
, by callinghttp.NewRequestWithContext
instead ofhttp.NewRequest
. Or maybe adding aWithContext
method on thezabbix.Context
strect.I especially think of a
context.WithTimeout
that would provide the ability to fail if Zabbix is too slow to respond or when it is unreachable in certain circumstances.The text was updated successfully, but these errors were encountered: