Skip to content

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

@manju1375

Description

@manju1375

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions