[#BloombergLP-balm-MetricRegistry-setUserData-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::setUserData :relfileprefix: ../../../ :mrdocs: Associate the specified `value` with the specified `key` in the description of the specified `metricId`. The behavior is undefined unless `key` was previously returned from `createUserDataKey`. Note that this method allows clients of `balm` to associate (opaque) application‐specific information with a metric. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setUserData( xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId, xref:BloombergLP/balm/MetricDescription/UserDataKey.adoc[MetricDescription::UserDataKey] key, void const* value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#