Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dinmukhamedm
Copy link
Member

@dinmukhamedm dinmukhamedm commented Aug 7, 2025

Important

Deduplicate tags in observe and startSpan functions, and remove deprecated label tests.

  • Behavior:
    • Deduplicate tags in observe function in decorators.ts and startSpan and setSpanTags methods in laminar.ts using Set.
    • Remove deprecated labels parameter from startSpan method in laminar.ts.
  • Tests:
    • Add tests in tracing.test.ts to verify tag deduplication in observe, startSpan, and setSpanTags.
    • Remove deprecated tests related to withLabels in tracing.test.ts.

This description was created by Ellipsis for c967646. You can customize this summary. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! πŸ‘

Reviewed everything up to 46c3608 in 47 seconds. Click for details.
  • Reviewed 264 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with πŸ‘ or πŸ‘Ž to teach Ellipsis.
1. src/decorators.ts:82
  • Draft comment:
    Good use of Array.from(new Set(tags)) to deduplicate tags. This approach is succinct and preserves insertion order.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. src/laminar.ts:407
  • Draft comment:
    Consistent deduplication logic in setSpanTags improves data hygiene. Consider refactoring if similar code appears elsewhere.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. src/laminar.ts:480
  • Draft comment:
    Deduplication is now applied to tags in startSpan as well. This ensures consistency, though consider extracting common deduplication logic if repeated in multiple methods.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. test/tracing.test.ts:305
  • Draft comment:
    New tests verifying duplicate tag removal in both observe and startSpan are comprehensive and validate the deduplication logic.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. test/tracing.test.ts:759
  • Draft comment:
    Deprecated tests related to labels have been removed, reducing maintenance overhead. Ensure deprecation notices are clear in the documentation.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_xHxhTF2Zg5tsP49d

You can customize Ellipsis by changing your verbosity settings, reacting with πŸ‘ or πŸ‘Ž, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! πŸ‘

Reviewed c967646 in 56 seconds. Click for details.
  • Reviewed 27 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with πŸ‘ or πŸ‘Ž to teach Ellipsis.
1. src/laminar.ts:480
  • Draft comment:
    Reformatted ternary for 'tagProperties' to improve readability. Deduplication via Array.from(new Set(tags)) remains correct.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. test/tracing.test.ts:9
  • Draft comment:
    Removed deprecated 'withLabels' import to clean up unused code.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_Z0awT8xDcMB9E4lx

You can customize Ellipsis by changing your verbosity settings, reacting with πŸ‘ or πŸ‘Ž, replying to comments, or adding code review rules.

@dinmukhamedm dinmukhamedm merged commit aa2ac70 into main Aug 17, 2025
3 checks passed
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