Skip to content

feat(tracing): refactor tracing#307

Merged
webhookx-x merged 1 commit intomainfrom
refactor/tracing
Feb 4, 2026
Merged

feat(tracing): refactor tracing#307
webhookx-x merged 1 commit intomainfrom
refactor/tracing

Conversation

@vm-001
Copy link
Collaborator

@vm-001 vm-001 commented Jan 27, 2026

Summary

  • The configuration tracing.enabled is replaced by tracing.instrumentations(defaults to []).
  • Make tracing tests easier to test.
  • Set different timeouts for different services. The maximum graceful shutdown timeout for application is 30 seconds.
  • Add trace_id field to access log (only for JSON format).
  • Refactor Plugin.

Configuration

  instrumentations: []                          # The list of enabled tracing instrumentations.
                                                # By default, no instrumentations are enabled.
                                                # Supported values are:
                                                # - `request`: HTTP request instrumentation.
                                                # - `plugin`: Plugin instrumentation.
                                                # - `dao`: DAO instrumentation.
                                                # - `@all`: an alias of all instrumentations.

@vm-001 vm-001 changed the title wip feat(tracing): refactor tracing Jan 27, 2026
@vm-001 vm-001 force-pushed the refactor/tracing branch 6 times, most recently from b5d2ffa to 91a517d Compare January 30, 2026 16:33
@vm-001 vm-001 force-pushed the refactor/tracing branch 3 times, most recently from 1dade4c to d56b3a4 Compare January 30, 2026 16:43
@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

❌ Patch coverage is 87.83680% with 158 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
worker/worker.go 75.66% 34 Missing and 12 partials ⚠️
app/app.go 85.14% 20 Missing and 10 partials ⚠️
proxy/gateway.go 89.36% 11 Missing and 4 partials ⚠️
services/eventbus/eventbus.go 84.61% 9 Missing and 5 partials ⚠️
services/task/service.go 87.50% 5 Missing and 2 partials ⚠️
config/modules/tracing.go 45.45% 3 Missing and 3 partials ⚠️
pkg/queue/redis/redis.go 87.23% 4 Missing and 2 partials ⚠️
pkg/tracing/instrumentations/mux.go 80.00% 2 Missing and 1 partial ⚠️
plugins/wasm/function_request.go 86.36% 1 Missing and 2 partials ⚠️
services/schedule/cron.go 91.42% 2 Missing and 1 partial ⚠️
... and 16 more
Flag Coverage Δ
integration 77.26% <82.37%> (+1.35%) ⬆️
integration-o11 41.48% <68.59%> (+2.72%) ⬆️
unit 12.03% <8.16%> (-0.55%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
admin/api/api.go 96.29% <100.00%> (+0.29%) ⬆️
admin/api/events.go 100.00% <100.00%> (ø)
config/loader.go 83.01% <100.00%> (+1.38%) ⬆️
config/providers/env.go 92.85% <100.00%> (+2.85%) ⬆️
db/dao/attempt_dao.go 100.00% <100.00%> (ø)
db/dao/attempt_detail_dao.go 93.33% <100.00%> (-6.67%) ⬇️
db/dao/dao.go 91.53% <100.00%> (+0.28%) ⬆️
db/dao/endpoint_dao.go 100.00% <100.00%> (ø)
db/dao/event_dao.go 89.18% <100.00%> (-0.29%) ⬇️
db/dao/plugin_dao.go 100.00% <100.00%> (ø)
... and 55 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vm-001 vm-001 force-pushed the refactor/tracing branch 3 times, most recently from a96c9d2 to f3a6a35 Compare January 30, 2026 17:23
@vm-001 vm-001 force-pushed the refactor/tracing branch 2 times, most recently from bf5a400 to 5fdc1f5 Compare February 2, 2026 08:59
@vm-001 vm-001 force-pushed the refactor/tracing branch 2 times, most recently from 481aa98 to ce6bf25 Compare February 2, 2026 10:14
@vm-001 vm-001 force-pushed the refactor/tracing branch 4 times, most recently from 7743a2c to 2a35745 Compare February 4, 2026 14:30
@vm-001 vm-001 requested a review from webhookx-x February 4, 2026 14:32
@webhookx-x webhookx-x merged commit fc92902 into main Feb 4, 2026
9 checks passed
@webhookx-x webhookx-x deleted the refactor/tracing branch February 4, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants