mirror of https://github.com/knative/pkg.git
				
				
				
			
		
			
				
	
	
		
			66 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Go
		
	
	
	
| /*
 | |
| Copyright 2018 The Knative Authors
 | |
| 
 | |
| Licensed under the Apache License, Version 2.0 (the "License");
 | |
| you may not use this file except in compliance with the License.
 | |
| You may obtain a copy of the License at
 | |
| 
 | |
|     http://www.apache.org/licenses/LICENSE-2.0
 | |
| 
 | |
| Unless required by applicable law or agreed to in writing, software
 | |
| distributed under the License is distributed on an "AS IS" BASIS,
 | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
| See the License for the specific language governing permissions and
 | |
| limitations under the License.
 | |
| */
 | |
| 
 | |
| package logkey
 | |
| 
 | |
| const (
 | |
| 	// ControllerType is the key used for controller type in structured logs
 | |
| 	ControllerType = "knative.dev/controller"
 | |
| 
 | |
| 	// Key is the key (namespace/name) being reconciled.
 | |
| 	Key = "knative.dev/key"
 | |
| 
 | |
| 	// TraceID is the key used to track an asynchronous or long running operation.
 | |
| 	TraceID = "knative.dev/traceid"
 | |
| 
 | |
| 	// Namespace is the key used for namespace in structured logs
 | |
| 	Namespace = "knative.dev/namespace"
 | |
| 
 | |
| 	// JSONConfig is the key used for JSON configurations (not to be confused by the Configuration object)
 | |
| 	JSONConfig = "knative.dev/jsonconfig"
 | |
| 
 | |
| 	// Kind is the key used to represent kind of an object in logs
 | |
| 	Kind = "knative.dev/kind"
 | |
| 
 | |
| 	// Name is the key used to represent name of an object in logs
 | |
| 	Name = "knative.dev/name"
 | |
| 
 | |
| 	// Operation is the key used to represent an operation in logs
 | |
| 	Operation = "knative.dev/operation"
 | |
| 
 | |
| 	// Resource is the key used to represent a resource in logs
 | |
| 	Resource = "knative.dev/resource"
 | |
| 
 | |
| 	// SubResource is a generic key used to represent a sub-resource in logs
 | |
| 	SubResource = "knative.dev/subresource"
 | |
| 
 | |
| 	// UserInfo is the key used to represent a user information in logs
 | |
| 	UserInfo = "knative.dev/userinfo"
 | |
| 
 | |
| 	// Pod is the key used to represent a pod's name in logs
 | |
| 	Pod = "knative.dev/pod"
 | |
| 
 | |
| 	// Deployment is the key used to represent a deployment's name in logs
 | |
| 	Deployment = "knative.dev/deployment"
 | |
| 
 | |
| 	// KubernetesService is the key used to represent a Kubernetes service name in logs
 | |
| 	KubernetesService = "knative.dev/k8sservice"
 | |
| 
 | |
| 	// GitHubCommitID is the key used to represent the GitHub Commit ID where the
 | |
| 	// Knative component was built from in logs
 | |
| 	GitHubCommitID = "commit"
 | |
| )
 |