Documentation ¶
Index ¶
Constants ¶
View Source
const ( CfgFluentdHost = "fluentd.host" CfgFluentdPort = "fluentd.port" CfgProhibitedHeaders = "prohibited_headers" CfgRequestResponseTag = "tags.request_response" CfgResponseBodyTag = "tags.response_body" CfgFeedbackTag = "tags.feedback" )
View Source
const ( ModelNameHeaderKey = "model-name" ModelVersionHeaderKey = "model-version" ModelEndpointHeaderKey = "model-endpoint" RequestIdHeaderKey = "x-request-id" LegionRequestIdHeaderKey = "request-id" HttpMethodHeaderKey = ":method" OriginalUriHeaderKey = "x-original-uri" StatusHeaderKey = ":status" ForwardedHostHeaderKey = "x-forwarded-host" )
Variables ¶
View Source
var (
CfgFile string
)
Functions ¶
func InitBasicParams ¶
func PanicIfError ¶
func PanicIfError(err error)
Types ¶
type DataLogging ¶
func NewDataLogger ¶
func NewDataLogger() (DataLogging, error)
type ModelFeedback ¶
type RequestResponse ¶
type RequestResponse struct { RequestID string `msg:"request_id"` RequestHttpHeaders map[string]string `msg:"request_http_headers"` RequestContent string `msg:"request_content"` RequestUri string `msg:"request_uri"` ResponseStatus string `msg:"response_status"` ResponseHttpHeaders map[string]string `msg:"response_http_headers"` RequestHost string `msg:"request_host"` ModelEndpoint string `msg:"model_endpoint"` ModelVersion string `msg:"model_version"` ModelName string `msg:"model_name"` RequestHttpMethod string `msg:"request_http_method"` }
Click to show internal directories.
Click to hide internal directories.