Class TenantRequestMetricsTagProvider

java.lang.Object
io.stargate.sgv2.api.common.metrics.TenantRequestMetricsTagProvider
All Implemented Interfaces:
io.quarkus.micrometer.runtime.HttpServerMetricsTagsContributor

@ApplicationScoped public class TenantRequestMetricsTagProvider extends Object implements io.quarkus.micrometer.runtime.HttpServerMetricsTagsContributor
Tags provider for http request metrics. It provides tenant id and user agent as tags.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.quarkus.micrometer.runtime.HttpServerMetricsTagsContributor

    io.quarkus.micrometer.runtime.HttpServerMetricsTagsContributor.Context
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micrometer.core.instrument.Tags
    contribute(io.quarkus.micrometer.runtime.HttpServerMetricsTagsContributor.Context context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TenantRequestMetricsTagProvider

      @Inject public TenantRequestMetricsTagProvider(StargateRequestInfo requestInfo, MetricsConfig metricsConfig)
      Default constructor.
  • Method Details

    • contribute

      public io.micrometer.core.instrument.Tags contribute(io.quarkus.micrometer.runtime.HttpServerMetricsTagsContributor.Context context)
      Specified by:
      contribute in interface io.quarkus.micrometer.runtime.HttpServerMetricsTagsContributor