-
Notifications
You must be signed in to change notification settings - Fork 64
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
How to send Version code of android app as Config to Datadog? #2289
Comments
Hi @manju1375! |
@manju1375 after some checks, we do not allow custom tags with RUM nor do we currently have plans to support this. The correct way to send this is what you have been doing - with |
There is no issue in sending Version code as customAttribute. It is about the usage like as per the attached image, My team wants to see VersioCode at a glance. It will be very helpful, sometimes for the same build we will have multiple version codes . Easy to identify versionCode changes across the sessions. |
Thanks for your reply. If you add the versionCode as a custom facet then you can add it as a column to the session dashboard. You would then see the version codes at a glance for all the sessions. Would this solve the problem? |
Yes. We can add custom facet. I'm aware of it. But the actual problem here is we have a team who focused on core features does not aware of Datadog RUM options. All devs within team cannot configure these options and as version code is very vital for builds. It will be great if you guys consider to add custom tag support with RUM. It can be minimum in number definitely it will help. Different teams/stack holders definitely have req to see particular attributes at initial glance without much configuration. |
@manju1375 Unfortunately, there are technical considerations that do not allow us currently to add this sort of support for custom tags. I hope this changes in the future, but cannot guarantee that this will be supported. |
@kevin-abiera On ios this attribute is automatically collected, however what I think @manju1375 is referring to is seeing the attribute in the tags at the top of the session, and this is not possible on ios either. I'll look into automatically collecting the versionCode on android so that this behavior will be aligned |
Question
Im using
Configuration.Builder(someproperties).build()
to send config info to Datadog RUM.I understand from docs it will take
version
by gradle.But I want to send
versionCode
as well to Datadog RUM and that should be separate Property.I used the below code for the same.
setAdditionalConfiguration(mapOf(Pair(VERSION_CODE,BuildConfig.VERSION_CODE))).build()
on BuilderIm expecting versioncode will displayed in black box like below. But it is not working as expected
Untitled.pdf
But it is not displayed anywhere in the RUM explorer.
Finally Im using now
GlobalRumMonitor.get().addAttribute(VERSION_CODE,BuildConfig.VERSION_CODE)
This will send info to customAttributes which is not accurate for me.
Let me know how to achieve the same?
The text was updated successfully, but these errors were encountered: