Skip to main content
Applies to:
  • Plan -
  • Deployment -

Summary

Goal: Emit traces to two separate projects with distinct root spans simultaneously. Features: Multiple logger instances with independent project targets and setCurrent: false configuration.

Configuration Steps

Step 1: Create primary logger

Initialize the main logger for your primary project.

Step 2: Create secondary logger with setCurrent: false

Initialize a second logger targeting the other project with setCurrent: false to prevent conflicts.

Step 3: Log to both projects

Use each logger instance to create distinct traces in their respective projects.

Use Case Example

Emit traces to both a shared service project and the consuming application’s project for dual visibility without post-processing.