Skip to content

Fix circular structure error in OpenTelemetry sink - #202

Merged
dahlia merged 1 commit into
dahlia:2.3-maintenancefrom
Scrumplex:fix/otel/circular-references
Aug 21, 2026
Merged

Fix circular structure error in OpenTelemetry sink#202
dahlia merged 1 commit into
dahlia:2.3-maintenancefrom
Scrumplex:fix/otel/circular-references

Conversation

@Scrumplex

@Scrumplex Scrumplex commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Very similar to 8821447.
In addition to fixing the inspect call, I also needed to track objects
seen in the convertValueToAnyValue recursion as it would otherwise cause
an infinite recursion in some cases.

@Scrumplex
Scrumplex marked this pull request as ready for review August 10, 2026 18:05
@Scrumplex

Copy link
Copy Markdown
Contributor Author

I'll take a look at the type error later today!

@Scrumplex
Scrumplex force-pushed the fix/otel/circular-references branch from 05610cb to 1a5a6ca Compare August 13, 2026 16:12
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.91%. Comparing base (0e5c5dd) to head (6c119f4).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
packages/otel/src/util.deno.ts 41.66% 3 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
- Coverage   86.01%   85.91%   -0.10%     
==========================================
  Files          70       71       +1     
  Lines       12883    12896      +13     
  Branches     2904     2910       +6     
==========================================
- Hits        11081    11080       -1     
- Misses       1276     1285       +9     
- Partials      526      531       +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Scrumplex
Scrumplex force-pushed the fix/otel/circular-references branch from 1a5a6ca to 6c119f4 Compare August 15, 2026 12:02

@dahlia dahlia left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! Could you address the following issues?

  • Since it's a bug fix, could you change the target branch of this pull request to 2.3-maintenance (instead of main)?
  • Please add a changelog fragment (see also the docs of Sacho, the changelog manager we use).

@Scrumplex
Scrumplex marked this pull request as draft August 20, 2026 17:42
Very similar to 8821447.
In addition to fixing the inspect call, I also needed to track objects
seen in the convertValueToAnyValue recursion as it would otherwise cause
an infinite recursion in some cases.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
@Scrumplex
Scrumplex force-pushed the fix/otel/circular-references branch from 6c119f4 to 065b1f7 Compare August 20, 2026 17:48
@Scrumplex
Scrumplex changed the base branch from main to 2.3-maintenance August 20, 2026 17:48
@Scrumplex
Scrumplex marked this pull request as ready for review August 20, 2026 17:48

@dahlia dahlia left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@dahlia dahlia self-assigned this Aug 21, 2026
@dahlia dahlia added the bug Something isn't working label Aug 21, 2026
@dahlia
dahlia merged commit a5341d8 into dahlia:2.3-maintenance Aug 21, 2026
@dahlia

dahlia commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Shipped with LogTape 2.3.2.

@Scrumplex
Scrumplex deleted the fix/otel/circular-references branch August 24, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants