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

Custom events character limits #152

Open
AmerigoM opened this issue Jul 25, 2023 · 0 comments
Open

Custom events character limits #152

AmerigoM opened this issue Jul 25, 2023 · 0 comments

Comments

@AmerigoM
Copy link

AmerigoM commented Jul 25, 2023

Hello. I'm using Splunk RUM to send some custom events from my Android and iOS applications. It seems there is a discrepancy between the two versions in relation of the character limits that is possible to send as parameter of a custom event and I couldn't find any mention about it in the official documentation.

I tried to send a Lorem Ipsum text of 1000 words (6860 characters) on both platforms as follows:

let dictionary: NSDictionary = ["myEventParameter": "lorem ipsum..."]
SplunkRum.reportEvent(name: "myEvent", attributes: dictionary)
SplunkRum.getInstance().addRumEvent("myEvent", Attributes.of(
        AttributeKey.stringKey("myEventParameter"), "lorem ipsum..."))
}}

On Android the text was logged entirely and can be seen correctly from the dashboard.
On iOS only a portion of the text made of 4096 characters was logged instead.

I noticed that this is a limit set by the constant MAX_ATTRIBUTE_LENGTH within the Splunk library.
Is it possible to modify this value and increase the limit?

Library versions

SplunkOtel iOS 0.11.1
SplunkOtel Android 1.0.0

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

No branches or pull requests

1 participant