1616
1717package com .github .gavlyukovskiy .boot .jdbc .decorator .p6spy ;
1818
19- import org .springframework .boot .context .properties .DeprecatedConfigurationProperty ;
20-
2119import java .util .regex .Pattern ;
2220
2321/**
@@ -50,11 +48,6 @@ public class P6SpyProperties {
5048 */
5149 private String logFormat ;
5250
53- /**
54- * Tracing related properties
55- */
56- private P6SpyTracing tracing = new P6SpyTracing ();
57-
5851 /**
5952 * Class file to use (only with logging=custom).
6053 * The class must implement {@link com.p6spy.engine.spy.appender.FormattedLogger}
@@ -86,10 +79,6 @@ public String getLogFormat() {
8679 return this .logFormat ;
8780 }
8881
89- public P6SpyTracing getTracing () {
90- return this .tracing ;
91- }
92-
9382 public String getCustomAppenderClass () {
9483 return this .customAppenderClass ;
9584 }
@@ -118,10 +107,6 @@ public void setLogFormat(String logFormat) {
118107 this .logFormat = logFormat ;
119108 }
120109
121- public void setTracing (P6SpyTracing tracing ) {
122- this .tracing = tracing ;
123- }
124-
125110 public void setCustomAppenderClass (String customAppenderClass ) {
126111 this .customAppenderClass = customAppenderClass ;
127112 }
@@ -137,31 +122,6 @@ public enum P6SpyLogging {
137122 CUSTOM
138123 }
139124
140- @ Deprecated
141- public static class P6SpyTracing {
142- /**
143- * Report the effective sql string (with '?' replaced with real values) to tracing systems.
144- * <p>
145- * NOTE this setting does not affect the logging message.
146- */
147- @ Deprecated
148- private boolean includeParameterValues = true ;
149-
150- @ Deprecated
151- @ DeprecatedConfigurationProperty (
152- reason = "JDBC instrumentation is provided in Spring Cloud Sleuth" ,
153- replacement = "spring.sleuth.jdbc.p6spy.tracing.include-parameter-values"
154- )
155- public boolean isIncludeParameterValues () {
156- return this .includeParameterValues ;
157- }
158-
159- @ Deprecated
160- public void setIncludeParameterValues (boolean includeParameterValues ) {
161- this .includeParameterValues = includeParameterValues ;
162- }
163- }
164-
165125 public static class P6SpyLogFilter {
166126 /**
167127 * Use regex pattern to filter log messages. Only matched messages will be logged.
0 commit comments