Skip to content

Use Android-specific log limits instead of shared component#727

Merged
nelsitoPuglisi merged 2 commits intomainfrom
fix/android-log-limits-inline
Mar 10, 2026
Merged

Use Android-specific log limits instead of shared component#727
nelsitoPuglisi merged 2 commits intomainfrom
fix/android-log-limits-inline

Conversation

@nelsitoPuglisi
Copy link
Contributor

Summary

  • Replace shared/log-limit.md import in Android docs with inline values matching the actual Android SDK
  • The shared component cannot serve both platforms because the SDKs differ:
Limit Android SDK iOS SDK shared/log-limit.md (before)
Properties per log 100 10 10
Property value length 1024 256 256
  • iOS docs continue using shared/log-limit.md (values match iOS SDK)
  • Affected files:
    • docs/android/integration-advanced/log-message-api.md
    • docs/android/legacy-integration/log-message-api.md

Android SDK sources:

  • MAX_PROPERTY_COUNT = 100 in LogServiceImpl.kt
  • MAX_PROPERTY_KEY_LENGTH = 128 in LogServiceImpl.kt
  • MAX_PROPERTY_VALUE_LENGTH = 1024 in LogServiceImpl.kt

Test plan

  • Verify the "Limits on Log Messages" warning box renders correctly on both Android log message API pages

🤖 Generated with Claude Code

The shared/log-limit.md cannot serve both platforms correctly because
Android and iOS SDKs have different values for properties per log (100
vs 10) and property value length (1024 vs 256). Android docs now use
inline values matching the actual Android SDK constants.

Also removes the log message max length line since that value is
controlled by remote config and the SDK default (128) does not reflect
the production behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nelsitoPuglisi nelsitoPuglisi requested a review from a team as a code owner March 9, 2026 23:05
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Summary - Markdown Lint

Success: No issues found in 393 files (112ms)

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Summary - Link Checker

Status Count
🔍 Total 478
✅ Successful 383
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 95
❓ Unknown 0
🚫 Errors 0
⛔ Unsupported 0
Full Github Actions output

Copy link
Member

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM pending CI

@ArielDemarco do we have plans to alter this limit on iOS so that it matches Android? (Or vice versa)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nelsitoPuglisi nelsitoPuglisi merged commit 9ab4359 into main Mar 10, 2026
4 checks passed
@nelsitoPuglisi nelsitoPuglisi deleted the fix/android-log-limits-inline branch March 10, 2026 17:41
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