Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spring-boot-starter-dsp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
shenjiaqing
spring-boot-starter-dsp
Commits
7acae66b
Commit
7acae66b
authored
Jul 06, 2023
by
wangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持关闭日志
parent
02b72d3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
build.gradle
build.gradle
+1
-1
SamplerLog.java
...com/duiba/spring/boot/starter/dsp/sampler/SamplerLog.java
+3
-0
No files found.
build.gradle
View file @
7acae66b
...
@@ -38,7 +38,7 @@ allprojects {
...
@@ -38,7 +38,7 @@ allprojects {
}
}
group
=
"cn.com.duiba.boot"
group
=
"cn.com.duiba.boot"
version
=
"0.0.5
8
"
version
=
"0.0.5
9
"
}
}
subprojects
{
subprojects
{
...
...
spring-boot-starter-dsp-sampler/src/main/java/cn/com/duiba/spring/boot/starter/dsp/sampler/SamplerLog.java
View file @
7acae66b
...
@@ -43,6 +43,9 @@ public class SamplerLog {
...
@@ -43,6 +43,9 @@ public class SamplerLog {
}
}
Integer
sampling
=
samplerLog
.
samplerLogConverter
.
getSampling
(
type
,
value
);
Integer
sampling
=
samplerLog
.
samplerLogConverter
.
getSampling
(
type
,
value
);
sampling
=
sampling
==
null
?
samplerLog
.
samplerLogProperties
.
getDefaultSize
()
:
sampling
;
sampling
=
sampling
==
null
?
samplerLog
.
samplerLogProperties
.
getDefaultSize
()
:
sampling
;
if
(
sampling
==
0
)
{
return
;
}
if
(
random
.
nextInt
(
sampling
)
==
0
)
{
if
(
random
.
nextInt
(
sampling
)
==
0
)
{
LOCAL
.
set
(
UUID
.
randomUUID
().
toString
(
true
));
LOCAL
.
set
(
UUID
.
randomUUID
().
toString
(
true
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment