# CommonRoomInstrumentationClient

A lightweight client providing access to Common Room instrumentation utilities.

# Reference

const client = new CommonRoomInstrumentationClient(logger?);

# Parameters

  • logger: A Logger instance.

# Methods

  • identify(emailAddress): Identify a Common Room user session using an email address.

# Usage

# Identify a user

Once identified, any previous anonymous traces that share the same user id and session id will be linked to the email address. Additionally, any existing data associated with that email address will be attached to the current session.

import { useCommonRoomInstrumentationClient } from "@workleap/common-room/react";

const client = useCommonRoomInstrumentationClient();

client.identify("johndoe@contoso.com");