Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * 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 com.opentable.logging;
Log Fields.
public interface HttpLogFields extends CommonLogFields
    @JsonProperty("method")
    String getMethod();
    @JsonProperty("url")
    String getUrl();
    @JsonProperty("status")
    int getStatus();
    @JsonProperty("duration")
    long getDurationMicros();
    @JsonProperty("bodysize")
    Long getBodySize();
    @JsonProperty("responsesize")
    @JsonProperty("user-agent")
    @JsonProperty("remote-address")
    @JsonProperty("x-forwarded-for")
    @JsonProperty("x-forwarded-port")
    @JsonProperty("x-forwarded-proto")
    String getForwardedProto();

    
Usually provided via MDC, but the RequestLog handler is triggered after the RequestIdFilter teardown so it is lost from the MDC.
    @JsonProperty("ot-requestid")
    @JsonProperty("ot-userid")
    String getUserId();
    @JsonProperty("ot-sessionid")
    @JsonProperty("ot-referringhost")
    @JsonProperty("ot-referringservice")
    @JsonProperty("ot-domain")
    String getDomain();
    @JsonProperty("accept-language")
New to GrepCode? Check out our FAQ X