For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add/Edit Attribute

API reference for adding and editing attributes on custom APM traces in Luciq. Enrich performance traces with custom metadata for better analysis.

You can add/edit a custom attribute using the following APIs, passing a string key and a string value.

// Add custom attributes to an existing trace
trace?.setAttributeWithKey("key", value: "value")
// Add custom attributes to an existing trace
[trace setAttributeWithKey:@"key" value:@"value"];
// Add custom attributes to an existing trace
trace.setAttribute("key", "value");
// Add custom attributes to an existing trace
trace?.setAttribute("key", "value")
// Add custom attributes to an existing trace
trace.setAttribute('key', 'value')
// Add custom attributes to an existing trace
trace.setAttribute('key', 'value')

Last updated