Skip to content

Commit

Permalink
remove unwanted constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas committed Oct 2, 2024
1 parent f41c231 commit e7c19ba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions opentelemetry-sdk/src/metrics/meter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl SdkMeter {
resolver: &InstrumentResolver<'_, T>,
) -> Result<Counter<T>>
where
T: 'static + Send + Sync + Number,
T: Number,
{
let validation_result = validate_instrument_config(builder.name.as_ref(), &builder.unit);
if let Err(err) = validation_result {
Expand Down Expand Up @@ -102,7 +102,7 @@ impl SdkMeter {
resolver: &InstrumentResolver<'_, T>,
) -> Result<ObservableCounter<T>>
where
T: 'static + Send + Sync + Number,
T: Number,
{
let validation_result = validate_instrument_config(builder.name.as_ref(), &builder.unit);
if let Err(err) = validation_result {
Expand Down Expand Up @@ -139,7 +139,7 @@ impl SdkMeter {
resolver: &InstrumentResolver<'_, T>,
) -> Result<ObservableUpDownCounter<T>>
where
T: 'static + Send + Sync + Number,
T: Number,
{
let validation_result = validate_instrument_config(builder.name.as_ref(), &builder.unit);
if let Err(err) = validation_result {
Expand Down Expand Up @@ -180,7 +180,7 @@ impl SdkMeter {
resolver: &InstrumentResolver<'_, T>,
) -> Result<ObservableGauge<T>>
where
T: 'static + Send + Sync + Number,
T: Number,
{
let validation_result = validate_instrument_config(builder.name.as_ref(), &builder.unit);
if let Err(err) = validation_result {
Expand Down Expand Up @@ -217,7 +217,7 @@ impl SdkMeter {
resolver: &InstrumentResolver<'_, T>,
) -> Result<UpDownCounter<T>>
where
T: 'static + Send + Sync + Number,
T: Number,
{
let validation_result = validate_instrument_config(builder.name.as_ref(), &builder.unit);
if let Err(err) = validation_result {
Expand Down Expand Up @@ -249,7 +249,7 @@ impl SdkMeter {
resolver: &InstrumentResolver<'_, T>,
) -> Result<Gauge<T>>
where
T: 'static + Send + Sync + Number,
T: Number,
{
let validation_result = validate_instrument_config(builder.name.as_ref(), &builder.unit);
if let Err(err) = validation_result {
Expand Down Expand Up @@ -281,7 +281,7 @@ impl SdkMeter {
resolver: &InstrumentResolver<'_, T>,
) -> Result<Histogram<T>>
where
T: 'static + Send + Sync + Number,
T: Number,
{
let validation_result = validate_instrument_config(builder.name.as_ref(), &builder.unit);
if let Err(err) = validation_result {
Expand Down

0 comments on commit e7c19ba

Please sign in to comment.