Class User

java.lang.Object
datadog.appsec.api.user.User

public class User extends Object
  • Constructor Details

    • User

      public User()
  • Method Details

    • setUserService

      public static void setUserService(UserService service)
      Controls the implementation for user service. The AppSec subsystem calls this method on startup. This can be called explicitly for e.g. testing purposes.
      Parameters:
      service - the implementation for the user service.
    • setUser

      public static void setUser(String id, Map<String,String> metadata)
      Sets the user monitoring tags on the root span using the prefix usr
      Parameters:
      id - identifier of the user
      metadata - custom metadata data represented as key/value map