# useHoneycombInstrumentationClient

Retrieve a HoneycombInstrumentationClient instance.

# Reference

const client = useHoneycombInstrumentationClient(options?: { throwOnUndefined? });

# Parameters

  • options: An optional object literal of options:
    • throwOnUndefined: Whether or not an exception should be thrown if a client instance hasn't been provided.

# Returns

A HoneycombInstrumentationClient instance.

# Usage

import { useHoneycombInstrumentationClient } from "@workleap/telemetry/react";

const client = useHoneycombInstrumentationClient();

client.setGlobalSpanAttributes({
    "app.user_id": "123"
});