Skip to content

스카우터를 처음 도입 해봐서 옵션 설정 문의 드립니다. #1005

Description

@smkim1980

스카우터 Agent 에서 아래와 같이 설정 하였습니다.
그런데 hook_exception_class_patterns 으로 설정한 custom Exception 은 XLOG 에 나오는데 NullPointException 이나 IllegalStateException 같은 Exception 은 XLOG 에 나오지 않고 있습니다.
웹서버에서 발생하는 모든 Exception 을 XLOG 로 보고 싶은데 조언 부탁드립니다.
감사합니다.

trace_http_client_ip_header_key=X-Forwarded-For

monitoring_group_type=tomcat

trace_http_client_ip_header_key=X-Forwarded-For

#서비스 연계 추적

trace_interservice_enabled=true

#Activating collect sub counters using JMX

jmx_counter_enabled=true

#Http Parameter profile

profile_http_parameter_enabled=true

hook_method_access_public_enabled=true

hook_method_access_private_enabled=true

hook_method_access_protected_enabled=true

#Activating default Method hooking

hook_method_access_none_enabled=true

hook_method_exclude_patterns=

hook_method_ignore_classes=

#기본값

hook_method_ignore_prefixes=get,set

profile_http_header_enabled=true

profile_http_header_keys=

profile_http_parameter_enabled=true

profile_http_querystring_enabled=true

profile_spring_controller_method_parameter_enabled=true

#error로 마킹할 Exception class pattern을 지정합니다.

#상속받은 Exception class의 이름까지 검색합니다.

hook_exception_class_patterns=org.springframework.web.bind.MethodArgumentNotValidException,tmoney.tnz.web.common.config.exception.TaxiGlobalRunTimeException,tmoney.tnz.web.common.config.exception.ValidException,org.springframework.web.bind.MissingServletRequestParameterException
#위 패턴에서 제외할 패턴을 지정합니다.(예를 들어 MyPjtException을 지정하였으나, 이를 상속받은 MyPjtBizException은 제외하려면 여기에 설정합니다.)

hook_exception_exclude_class_patterns=

#Exception handler method의 pattern을 지정합니다. 이 메소드로 전달되는 Exception class의 정보로 error 정보를 profiling 합니다.

hook_exception_handler_method_patterns=Exception

#위 메소드에 전달되는 Exception 중 error 마킹에서 제외할 class 정보를 입력합니다.

hook_exception_handler_exclude_class_patterns=

profile_fullstack_hooked_exception_enabled=true

xlog_error_on_sqlexception_enabled=true

xlog_error_on_apicall_exception_enabled=true

xlog_error_sql_time_max_ms=3000

xlog_error_jdbc_fetch_max=1000

[XLog Sampling]

##xlog_sampling_enabled=false

#xlog는 유지하고 profile 정보만 샘플링한다.

xlog_sampling_enabled=true

##xlog_patterned_sampling_only_profile=false

xlog_patterned_sampling_only_profile=true

xlog_sampling_step1_ms=1000

xlog_sampling_step1_rate_pct=0

xlog_sampling_step2_ms=5000

xlog_sampling_step2_rate_pct=100

xlog_sampling_step3_ms=10000

xlog_sampling_step3_rate_pct=100

xlog_sampling_over_rate_pct=100

[XLog Patterned Sampling]

xlog_patterned_sampling_enabled=false

xlog_patterned_sampling_service_patterns=

#xlog는 유지하고 profile 정보만 샘플링한다.

xlog_patterned_sampling_only_profile=false

xlog_patterned_sampling_step1_ms=100

xlog_patterned_sampling_step1_rate_pct=3

xlog_patterned_sampling_step2_ms=1000

xlog_patterned_sampling_step2_rate_pct=10

xlog_patterned_sampling_step3_ms=3000

xlog_patterned_sampling_step3_rate_pct=30

xlog_patterned_sampling_over_rate_pct=100

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions