Skip to content

fix(tracing): remove duplicate inline TracingService from TracingModule and export real TracingService - #843

Open
huangji6693-max wants to merge 1 commit into
trustflow-protocol:mainfrom
huangji6693-max:fix/dedup-tracing-service-827
Open

huangji6693-max wants to merge 1 commit into
trustflow-protocol:mainfrom
huangji6693-max:fix/dedup-tracing-service-827

Conversation

@huangji6693-max

Copy link
Copy Markdown

Closes #827

Summary

  • Remove the duplicate dead-code TracingService class declared inside src/tracing/tracing.module.ts that shadowed the real TracingService in src/tracing/tracing.service.ts.
  • Import and re-export TracingService and SpanOptions from ./tracing.service in src/tracing/tracing.module.ts so TracingModule provides and exports the real OpenTelemetry wrapper service.
  • Add unit tests in src/tracing/tracing.module.spec.ts verifying DI token identity and withSpan / startSpan methods on the injected TracingService.

Payout Wallets:

  • Stellar (USDC / XLM): GBYWLISGOUWQ43VQEGXX6KRGDZ3CKAFFK3JXVLXKDO5TIFJUJ3OHJYOZ
  • EVM / Base (USDC): 0x380C97bcbcAEf29DAc2d0ba7E180F1b4A7F38fdd
  • Solana (USDC / SOL): AyXYaA9Nf4z5fpLKY6DmubWe6D2qveMd79w8pEDNHcDw

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.

TracingModule declares a dead-code TracingService that shadows the real, usable TracingService from tracing.service.ts

1 participant