Skip to content

Custom RetentionPeriod #522

@TayfunCesur

Description

@TayfunCesur

⚠️ Is your feature request related to a problem? Please describe

It is not a blocker problem but I think it is an improvable point. I am using chucker in my personal project and I saw that

  • Every time when I launch the app, I see the old transaction history (which is definitely trash for me) and it is really hard to find where/when the new requests started.
  • The only way to see the new transactions per session is removing all history manually every time.

💡 Describe the solution you'd like

In ChuckerCollector, we have retentionPeriod as RetentionManager.Period. I think ,enum usage restricts us. I'd prefer to have a Long or some custom type that accepts Long like CustomType(periodInMills : Long)

We could extend the current Enum but it wouldn't fit for all cases. For example someone would need 15 min period in someday? Either way, that retentionPeriod value is being converted to mills.

Thanks.

🙋 Do you want to develop this feature yourself?

  • Yes
    I can also participate the development after the final decision has been made.
  • Extending the enum
  • Cutting out the enum and walk with Long or CustomType(periodInMills : Long)
  • Other ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to the library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions