Skip to content

Conversation

@tcmulcahy
Copy link
Collaborator

Change PapaSafeTrace from delegating to SafeTrace.isTraceable to accepting isTraceable as a constructor parameter. This gives clients direct control over whether tracing is enabled, removing the implicit dependency on SafeTrace.isTraceable, which will be removed soon.

Update WorkflowPapaTracer's default to explicitly pass isTraceable=false to avoid overhead. Add tests to verify the new configuration capability for both PapaSafeTrace and WorkflowPapaTracer.

Change PapaSafeTrace from delegating to SafeTrace.isTraceable to
accepting isTraceable as a constructor parameter. This gives clients
direct control over whether tracing is enabled, removing the implicit
dependency on SafeTrace.isTraceable, which will be removed soon.

Update WorkflowPapaTracer's default to explicitly pass isTraceable=false to
avoid overhead. Add tests to verify the new configuration capability for both
PapaSafeTrace and WorkflowPapaTracer.
@tcmulcahy tcmulcahy force-pushed the tomm/remove-safe-trace-is-traceable branch from db57be0 to b8c78b8 Compare November 7, 2025 17:22
public final class com/squareup/workflow1/tracing/papa/PapaSafeTrace : com/squareup/workflow1/tracing/SafeTraceInterface {
public fun <init> ()V
public fun <init> (Z)V
public synthetic fun <init> (ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kotlin generates this when you have parameters with default values - see https://stackoverflow.com/a/53912965 for details

@tcmulcahy tcmulcahy marked this pull request as ready for review November 7, 2025 17:29
@tcmulcahy tcmulcahy requested review from a team and zach-klippenstein as code owners November 7, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants