15fdcb5027
- Changing the traceRecord method to be static. This avoids creating an instance on each call. - Caching the results of isOpenTelemetryJavaagentEnable() and isOpenTelemetryApiEnable(). - Using isDebugEnabled() to avoid the costs of constructing strings when it's not necessary. - Reorganizing some conditions to minimize the operations performed. - Moving the static instances TEXT_MAP_PROPAGATOR, SETTER, and GETTER into the traceRecord method. This will prevent them from being held in memory when not in use. |
||
---|---|---|
.. | ||
src | ||
pom.xml |