Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add meshId to debug state. #2009

Merged
merged 2 commits into from
Apr 10, 2023
Merged

Conversation

bgrozev
Copy link
Member

@bgrozev bgrozev commented Apr 6, 2023

No description provided.

@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

Merging #2009 (575ceb9) into master (4339a9f) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2009      +/-   ##
============================================
- Coverage     42.91%   42.86%   -0.05%     
+ Complexity     1678     1674       -4     
============================================
  Files           325      325              
  Lines         16942    16945       +3     
  Branches       2237     2238       +1     
============================================
- Hits           7270     7264       -6     
- Misses         8961     8969       +8     
- Partials        711      712       +1     
Impacted Files Coverage Δ
...c/main/kotlin/org/jitsi/videobridge/relay/Relay.kt 16.81% <100.00%> (+0.17%) ⬆️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4339a9f...575ceb9. Read the comment docs.

@@ -301,6 +301,7 @@ class Relay @JvmOverloads constructor(
put("iceTransport", iceTransport.getDebugState())
put("dtlsTransport", dtlsTransport.getDebugState())
put("transceiver", transceiver.getNodeStats().toJson())
put("meshId", meshId.toString())
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this do "meshId": "null" if there's no meshId? If this is json unquoted null is probably ok, but quoted null would be confusing (since that's technically a valid meshId value).

Copy link
Member Author

Choose a reason for hiding this comment

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

I did this on purpose because I have a vague memory of something down the line breaking if we have null values. But I think I may be getting confused with OrderedJsonObject which requires non-nulls but isn't used here.

@bgrozev bgrozev merged commit 18476a9 into jitsi:master Apr 10, 2023
@bgrozev bgrozev deleted the add-mesh-id-to-debug-state branch May 23, 2024 13:35
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