Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
2d562376
Commit
2d562376
authored
Jun 17, 2019
by
QIANGLU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add intercepter
parent
53466f71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
TraceInterceptor.java
monitor-starter/src/main/java/com/secoo/matrix/monitor/http/intercept/TraceInterceptor.java
+2
-2
No files found.
monitor-starter/src/main/java/com/secoo/matrix/monitor/http/intercept/
NoveController
Interceptor.java
→
monitor-starter/src/main/java/com/secoo/matrix/monitor/http/intercept/
Trace
Interceptor.java
View file @
2d562376
...
...
@@ -19,9 +19,9 @@ import java.util.concurrent.atomic.AtomicInteger;
* 为了在Http请求入口生成TRACE_ID,日志ID
* </p>
*/
public
class
NoveController
Interceptor
extends
HandlerInterceptorAdapter
{
public
class
Trace
Interceptor
extends
HandlerInterceptorAdapter
{
private
Logger
logger
=
LoggerFactory
.
getLogger
(
NoveController
Interceptor
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
Trace
Interceptor
.
class
);
private
final
ConcurrentMap
<
String
,
AtomicInteger
>
concurrents
=
new
ConcurrentHashMap
<>();
private
ThreadLocal
<
Long
>
stime
=
new
ThreadLocal
<>();
...
...
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