Skip to content

[Observability] No distributed tracing across microservices — impossible to debug multi-service requests #49

@anshul23102

Description

@anshul23102

Executive Summary

Orders flow across multiple microservices (Order, Product, Payment) but there's no request tracing. When failures occur, debugging requires manually checking logs across all services.

Proposed Solution

// Add dependency: org.springframework.cloud:spring-cloud-sleuth-zipkin

@Configuration
public class TracingConfig {
  @Bean
  public Sampler sampler() {
    return Sampler.ALWAYS_SAMPLE;
  }
}

// In application.yml
spring:
  application:
    name: order-service
  zipkin:
    base-url: http://zipkin:9411
    enabled: true
  sleuth:
    trace-id128: true

All API endpoints automatically get trace IDs. Logs are tagged with trace-id and span-id.

Checklist

  • I have searched existing issues and confirmed this is not a duplicate
  • I have read the CONTRIBUTING.md guidelines
  • I have provided clear steps to reproduce the issue
  • I have described expected vs. actual behavior clearly
  • This issue title is clear and specific
  • This repository has been verified as NSOC on https://www.nsoc.in/projects

@pooranjoyb Could you please /assign this issue to me? I would like to implement distributed tracing under NSOC '26.

/assign

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions