© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Accessing a Metric's Name in Effect Typescript Library - Effect Community
EC
Effect Community
•
16mo ago
Arman
Accessing a Metric's Name in Effect Typescript Library
I
'm struggling to find how to get a metric
's name given the metric
. For example
const
MyMetric
=
Metric.
gauge
(
'somename'
)
const
MyMetric
=
Metric.
gauge
(
'somename'
)
Now given I have
MyMetric
MyMetric
, how can one get
'somename'
'somename'
from it
?
(seems to be nested under the MetricKey but unsure how to access it
)
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Difficulty in Unifying Return Types in TypeScript's Effect Library
EC
Effect Community / 🚀-effect
14mo ago
Sharing `catchTags` in Effect Typescript library
EC
Effect Community / 🚀-effect
2y ago
Interest in @effect/auth for Effect Typescript Library
EC
Effect Community / 🚀-effect
8mo ago
Understanding the Effect Type in Effect Typescript Library
EC
Effect Community / 🚀-effect
12mo ago