Package io.sentry

Interface SentryOptions.BeforeEmitMetricCallback

Enclosing class:
SentryOptions

@Experimental public static interface SentryOptions.BeforeEmitMetricCallback
The BeforeEmitMetric callback
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(@NotNull String key, @Nullable Map<String,String> tags)
    A callback which gets called right before a metric is about to be emitted.
  • Method Details

    • execute

      boolean execute(@NotNull @NotNull String key, @Nullable @Nullable Map<String,String> tags)
      A callback which gets called right before a metric is about to be emitted.
      Parameters:
      key - the metric key
      tags - the metric tags
      Returns:
      true if the metric should be emitted, false otherwise