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
In my case, the string I want to use is not 'static, and this means I cannot use it to create meters.
I see that the instrument builder methods take impl Into<String> for the names. Maybe the meter functions could take the same, or Cow<'static, str> directly (since it seems like thats whats stored in the InstrumentationLibrary)
The text was updated successfully, but these errors were encountered:
It seems like the
MeterProvider::meter
method takes&'static str
's for name (as well as version and schema_url).https://docs.rs/opentelemetry/latest/opentelemetry/metrics/trait.MeterProvider.html
In my case, the string I want to use is not
'static
, and this means I cannot use it to create meters.I see that the instrument builder methods take
impl Into<String>
for the names. Maybe the meter functions could take the same, orCow<'static, str>
directly (since it seems like thats whats stored in theInstrumentationLibrary
)The text was updated successfully, but these errors were encountered: