Clear all account information
Clear all account information
Get account information
Remove an account property
Key of the property to remove
Set account information to all events, stored in @account
Set or update the account property, stored in @account.<key>
Key of the property
Value of the property
Clear the global context
See Global context for further information.
Get the global Context
See Global context for further information.
Remove a global context property
See Global context for further information.
Set the global context information to all events, stored in @context
See Global context for further information.
Global context
Set or update a global context property, stored in @context.<key>
See Global context for further information.
Key of the property
Value of the property
Get the init configuration
The init configuration
Init the Logs browser SDK.
See Browser Log Collection for further information.
Configuration options of the SDK
The Datadog browser logs SDK contains a default logger DD_LOGS.logger
, but this API allows to create different ones.
See Define multiple loggers for further information.
Name of the logger
Optional
conf: LoggerConfigurationConfiguration of the logger (level, handler, context)
Get a logger
See Define multiple loggers for further information.
The default logger
For CDN async setup: Early RUM API calls must be wrapped in the window.DD_RUM.onReady()
callback. This ensures the code only gets executed once the SDK is properly loaded.
See CDN async setup for further information.
Version of the Logs browser SDK
Set the tracking consent of the current user.
Logs will be sent only if it is set to "granted". This value won't be stored by the library
across page loads: you will need to call this method or set the appropriate trackingConsent
field in the init() method at each page load.
If this method is called before the init() method, the provided value will take precedence over the one provided as initialization parameter.
See User tracking consent for further information.
The user tracking consent
Clear all user information
See User session for further information.
Get user information
See User session for further information.
Remove a user property
Key of the property to remove
User session for further information.
Set or update the user property, stored in @usr.<key>
See User session for further information.
Key of the property
Value of the property
Set user information to all events, stored in @usr
See User session for further information.
User information
Public API for the Logs browser SDK.
See Browser Log Collection for further information.