# Publishing metrics from extensions added through ServerOptions

**URL:** <https://community.temporal.io/t/publishing-metrics-from-extensions-added-through-serveroptions/1928>\
**Category:** Community Support\
**Created:** [April 14, 2021, 5:22pm UTC](https://community.temporal.io/t/publishing-metrics-from-extensions-added-through-serveroptions/1928 "2021-04-14T17:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanThomas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ryanthomas/32/277_2.png) [@RyanThomas](https://community.temporal.io/u/RyanThomas)\
**Post date:** [April 14, 2021, 5:22pm UTC](https://community.temporal.io/t/publishing-metrics-from-extensions-added-through-serveroptions/1928/1 "2021-04-14T17:22:17Z")

</div>

It would be useful if a reference to the metrics object was passed into the different ServerOption functions so that our custom Elasticsearch HTTP client could publish metrics for when retrieving secrets succeeds/fails. I’m sure publishing metrics from other server options like the authorizer would also be useful for many folks.

---

<div class="post-metadata">

**Author:** ![Wenquan\_Xing](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/wenquan_xing/32/362_2.png) [@Wenquan\_Xing](https://community.temporal.io/u/Wenquan_Xing)\
**Post date:** [April 16, 2021, 5:26pm UTC](https://community.temporal.io/t/publishing-metrics-from-extensions-added-through-serveroptions/1928/3 "2021-04-16T17:26:47Z")

</div>

please file an feature request here: [https://github.com/temporalio/temporal/issues/new/choose](https://github.com/temporalio/temporal/issues/new/choose)
