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

How to send Version code of android app as Config to Datadog? #2289

Open
manju1375 opened this issue Sep 26, 2024 · 8 comments
Open

How to send Version code of android app as Config to Datadog? #2289

manju1375 opened this issue Sep 26, 2024 · 8 comments
Labels
question Further information is requested

Comments

@manju1375
Copy link

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 Builder

Im 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?

@manju1375 manju1375 added the question Further information is requested label Sep 26, 2024
@manju1375 manju1375 changed the title How to send Version code of android app as Config to Datadog> How to send Version code of android app as Config to Datadog? Sep 26, 2024
@jonathanmos
Copy link
Member

Hi @manju1375!
Regarding additionalConfiguration, it will not be helpful here as these parameters are mostly not displayed in the session. I'm looking to see if there is an alternative to customAttributes and will get back to you as soon as I have an answer.

@jonathanmos
Copy link
Member

@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 customAttributes - and you can create a facet based upon that. You mentioned that customAttributes is not accurate for you - can you explain further what issue you are having with using it?

@manju1375
Copy link
Author

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.

@jonathanmos
Copy link
Member

jonathanmos commented Oct 7, 2024

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?

@manju1375
Copy link
Author

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.
Myself is like responsible for Datadog integration for android.

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.
Not now atleast in future.

@jonathanmos
Copy link
Member

jonathanmos commented Oct 9, 2024

@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
Copy link

It's picked up correctly in iOS (build number). What's the hold up in Android?

Image

@jonathanmos
Copy link
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants