anchor.diff:  [[app-metrics-api]]
   == Application Metrics Programming Model
   
  -Microprofile Metrics provides a way to register Application-specific metrics to allow applications to expose metrics in
  +MicroProfile Metrics provides a way to register Application-specific metrics to allow applications to expose metrics in
   the _application_ scope (see <<scopes>> for the description of scopes).
   
   Metrics and their metadata are added to a _Metric Registry_ upon definition and can afterwards have their values set
  
positive.code: :sectnums:
  :icons: font
  
  = Metrics for Eclipse Microprofile
  
  include::license-alv2.asciidoc[]
  
  
negative.code: export MP_METRICS_TAGS=app=shop,tier=integration
  ----
  
  Global tags and tags set in metric metadata are included in the output returned from the REST API.
  
  [[meta-data-def]]
  ==== Metadata
  
  Metadata can be specified for metrics in any scope. For base metrics, metadata must be provided by the implementation. Metadata is exposed by the REST handler.
  
  TIP: While technically it is possible to expose metrics without (some) of the metadata, it helps tooling and also
  operators when correct metadata is provided, as this helps getting a context and an explanation of the metric.
  