github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/core/logger/labels.go (about)

     1  // Copyright 2021 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package logger
     5  
     6  // Label represents a common logger label type.
     7  type Label = string
     8  
     9  const (
    10  	// HTTP defines a common HTTP request label.
    11  	HTTP Label = "http"
    12  
    13  	// METRICS defines a common label for dealing with metric output. This
    14  	// should be used as a fallback for when prometheus isn't available.
    15  	METRICS Label = "metrics"
    16  
    17  	// CHARMHUB defines a common label for dealing with the charmhub client
    18  	// and callers.
    19  	CHARMHUB Label = "charmhub"
    20  
    21  	// CMR defines a common label for dealing with cross model relations.
    22  	CMR Label = "cmr"
    23  
    24  	// CMR_AUTH defines a common label for dealing with cross model relations auth.
    25  	CMR_AUTH Label = "cmr-auth"
    26  
    27  	// SECRETS defines a common label for dealing with secrets.
    28  	SECRETS Label = "secrets"
    29  
    30  	// MIGRATION defines a common label for dealing with migration.
    31  	MIGRATION Label = "migration"
    32  )