|
| 1 | +# https://www.elastic.co/guide/en/apm/agent/java/master/config-reference-properties-file.html |
| 2 | + |
| 3 | +############################################ |
| 4 | +# Circuit-Breaker # |
| 5 | +############################################ |
| 6 | + |
| 7 | +circuit_breaker_enabled=false |
| 8 | + |
| 9 | +############################################ |
| 10 | +# Core # |
| 11 | +############################################ |
| 12 | + |
| 13 | +recording=true |
| 14 | +enabled=true |
| 15 | +instrument=true |
| 16 | +transaction_sample_rate=1 |
| 17 | +transaction_max_spans=500 |
| 18 | +sanitize_field_names=password,passwd,pwd,secret,*key,*token*,*session*,*credit*,*card*,*auth*,*principal*,set-cookie |
| 19 | +enable_experimental_instrumentations=false |
| 20 | +capture_body=ALL |
| 21 | +capture_headers=true |
| 22 | +central_config=true |
| 23 | +breakdown_metrics=true |
| 24 | +config_file=_AGENT_HOME_/elasticapm.properties |
| 25 | +use_elastic_traceparent_header=true |
| 26 | +span_min_duration=0ms |
| 27 | +cloud_provider=AWS |
| 28 | +enable_public_api_annotation_inheritance=false |
| 29 | +trace_continuation_strategy=CONTINUE |
| 30 | + |
| 31 | +############################################ |
| 32 | +# HTTP # |
| 33 | +############################################ |
| 34 | + |
| 35 | +capture_body_content_types=application/x-www-form-urlencoded*,text/*,application/json*,application/xml* |
| 36 | +transaction_ignore_urls=/VAADIN/*,*/healthcheck,/heartbeat*,/favicon.ico,*.js,*.css,*.jpg,*.jpeg,*.png,*.gif,*.webp,*.svg,*.woff,*.woff2 |
| 37 | +use_path_as_transaction_name=true |
| 38 | + |
| 39 | +############################################ |
| 40 | +# Huge Traces # |
| 41 | +############################################ |
| 42 | + |
| 43 | +span_compression_enabled=true |
| 44 | +span_compression_exact_match_max_duration=50ms |
| 45 | +span_compression_same_kind_max_duration=0ms |
| 46 | +exit_span_min_duration=0ms |
| 47 | + |
| 48 | +############################################ |
| 49 | +# JAX-RS # |
| 50 | +############################################ |
| 51 | + |
| 52 | +enable_jaxrs_annotation_inheritance=false |
| 53 | +use_jaxrs_path_as_transaction_name=false |
| 54 | + |
| 55 | +############################################ |
| 56 | +# JMX # |
| 57 | +############################################ |
| 58 | + |
| 59 | +capture_jmx_metrics=\ |
| 60 | +object_name[java.lang:type=Memory] \ |
| 61 | +attribute[HeapMemoryUsage:metric_name=heap] \ |
| 62 | +attribute[NonHeapMemoryUsage:metric_name=nonheap] \ |
| 63 | +, \ |
| 64 | +object_name[java.lang:type=Threading] \ |
| 65 | +attribute[ThreadCount:metric_name=thread_count] |
| 66 | + |
| 67 | +############################################ |
| 68 | +# Logging # |
| 69 | +############################################ |
| 70 | + |
| 71 | +log_level=INFO |
| 72 | +log_file=System.out |
| 73 | +log_ecs_reformatting=OFF |
| 74 | +log_format_file=JSON |
| 75 | + |
| 76 | +############################################ |
| 77 | +# Metrics # |
| 78 | +############################################ |
| 79 | + |
| 80 | +dedot_custom_metrics=true |
| 81 | +metric_set_limit=1000 |
| 82 | + |
| 83 | +############################################ |
| 84 | +# Profiling # |
| 85 | +############################################ |
| 86 | + |
| 87 | +profiling_inferred_spans_enabled=false |
| 88 | +profiling_inferred_spans_sampling_interval=50ms |
| 89 | +profiling_inferred_spans_min_duration=0ms |
| 90 | +profiling_inferred_spans_included_classes=* |
| 91 | +profiling_inferred_spans_excluded_classes=(?-i)java.*,(?-i)javax.*,(?-i)sun.*,(?-i)com.sun.*,(?-i)jdk.*,(?-i)org.apache.tomcat.*,(?-i)org.apache.catalina.*,(?-i)org.apache.coyote.*,(?-i)org.jboss.as.*,(?-i)org.glassfish.*,(?-i)org.eclipse.jetty.*,(?-i)com.ibm.websphere.*,(?-i)io.undertow.* |
| 92 | + |
| 93 | +############################################ |
| 94 | +# Reporter # |
| 95 | +############################################ |
| 96 | + |
| 97 | +disable_send=false |
| 98 | +server_timeout=5s |
| 99 | +verify_server_cert=true |
| 100 | +max_queue_size=512 |
| 101 | +include_process_args=false |
| 102 | +api_request_time=10s |
| 103 | +api_request_size=768kb |
| 104 | +metrics_interval=30s |
| 105 | + |
| 106 | +############################################ |
| 107 | +# Stacktrace # |
| 108 | +############################################ |
| 109 | + |
| 110 | +application_packages=otus-30.core |
| 111 | +stack_trace_limit=50 |
| 112 | +span_stack_trace_min_duration=0ms |
0 commit comments