Reduce tracing related heap allocations

Description

It is common for tracing systems, such as OpenTelemetry, to reduce the (not insignificant) load created by tracing by using switches or sampling. In these cases, they will reduce heap allocations by returning null for spans/activities rather than allocating objects on the heap every time. The Couchbase SDK should respect that by also avoiding heap allocations.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created December 10, 2021 at 4:50 AM
Updated December 20, 2021 at 8:58 PM
Resolved December 20, 2021 at 8:58 PM
Instabug