mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
metrics: ss: skip tagging if no ss streamtypename
This commit is contained in:
parent
6c7798eef4
commit
e9c92ec161
1 changed files with 4 additions and 3 deletions
|
@ -863,11 +863,12 @@ _lws_ss_client_connect(lws_ss_handle_t *h, int is_retry, void *conn_if_sspc_onw)
|
|||
|
||||
#if defined(LWS_WITH_SYS_METRICS)
|
||||
/* possibly already hanging connect retry... */
|
||||
if (!h->cal_txn.mt) {
|
||||
if (!h->cal_txn.mt)
|
||||
lws_metrics_caliper_bind(h->cal_txn, h->context->mth_ss_conn);
|
||||
}
|
||||
|
||||
lws_metrics_tag_add(&h->cal_txn.mtags_owner, "ss", h->policy->streamtype);
|
||||
if (h->policy->streamtype)
|
||||
lws_metrics_tag_add(&h->cal_txn.mtags_owner, "ss",
|
||||
h->policy->streamtype);
|
||||
#endif
|
||||
|
||||
h->txn_ok = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue