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