Kevin Wan
367afb544c
feat: support ptr of ptr of ... in mapping ( #2779 )
...
* feat: support ptr of ptr of ... in mapping
* feat: support ptr of ptr of time.Duration in mapping
* feat: support ptr of ptr of json.Number in mapping
* chore: improve setting in mapping
* feat: support ptr of ptr encoding.TextUnmarshaler in mapping
* chore: add more tests
* fix: string ptr
* chore: update tests
2023-01-12 15:56:51 +08:00
cong
43b8c7f641
chore(trace): improve rest tracinghandler ( #2783 )
2023-01-12 12:50:57 +08:00
cong
f9619328f2
refactor(rest): use static config for trace ignore paths. ( #2773 )
2023-01-12 09:40:18 +08:00
chen quan
fc9b3ffdc1
refactor: use opentelemetry's standard api to track http status code ( #2760 )
2023-01-06 23:27:54 +08:00
Kevin Wan
83f88d177f
chore: improve codecov ( #2752 )
2023-01-04 13:42:20 +08:00
xiang
641ebf1667
feat: trace http.status_code ( #2708 )
...
* feat: trace http.status_code
* feat: implements http.Flusher & http.Hijacker for traceResponseWriter
* test: delete notTracingSpans after test
* feat: trace http.status_code
* feat: implements http.Flusher & http.Hijacker for traceResponseWriter
* test: delete notTracingSpans after test
* refactor: update trace handler span message
* fix: code conflict
2023-01-04 10:21:57 +08:00
chen quan
97a8b3ade5
fix(rest): fix issues#2628 ( #2629 )
2022-11-23 22:50:08 +08:00
Kevin Wan
9cadab2684
chore: refactor ( #2545 )
...
* chore: refactor
* chore: refactor
2022-10-22 22:52:40 +08:00
chen quan
7fe2492009
feat(trace): support for disabling tracing of specified spanName
( #2363 )
2022-10-22 22:14:12 +08:00
Kevin Wan
3279a7ef0f
feat: add rest/httpc to make http requests governacible ( #1638 )
...
* feat: change x-trace-id to traceparent to follow opentelemetry
* feat: add rest/httpc to make http requests governacible
* chore: remove blank lines
2022-03-13 14:11:14 +08:00
Kevin Wan
842656aa90
feat: log 404 requests with traceid ( #1554 )
2022-02-19 20:50:33 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
Kevin Wan
10e7922597
feat: opentelemetry integration, removed self designed tracing ( #1111 )
...
* feat: opentelemetry integration, removed self designed tracing
* feat: support zipkin on opentelemetry integration
* feat: support zipkin on opentelemetry integration, enable it in conf
* style: format code
* fix: support logx without exporter configured
* fix: check return values
* refactor: simplify code
* refactor: simplify opentelemetry integration
* ci: fix staticcheck errors
2021-10-03 20:53:50 +08:00
Kevin Wan
9c1ee50497
refactor ( #920 )
2021-08-17 10:24:12 +08:00
chenquan
7c842f22d0
Add traceId to the response headers ( #919 )
...
* Add traceId to the request headers
* Add test cases
* Update refactor code
2021-08-17 10:12:08 +08:00
Kevin Wan
655ae8034c
fix golint issues in rest ( #529 )
2021-03-01 19:15:35 +08:00
kevin
0a7e0cce77
update package reference
2020-08-08 16:40:10 +08:00
kevin
0897f60c5d
rename ngin to rest
2020-07-31 11:14:48 +08:00