Giter VIP home page Giter VIP logo

Comments (6)

SpartakusMd avatar SpartakusMd commented on August 16, 2024 1

I agree with the compatibility, it wasn't hard to do, but allows the package to be used by more users.

I was also thinking to make it configurable. But in the end avoided complexity. We can add it later if it will be necessary.

from messenger-azure-queue-transport.

SpartakusMd avatar SpartakusMd commented on August 16, 2024

@alexandrubau do you already have ideas about how to approach this bug? I would like to fix this as we're also impacted.

from messenger-azure-queue-transport.

alexandrubau avatar alexandrubau commented on August 16, 2024

What I remember from that time is that maybe we could add another option when configuring the queue such as error_stack_trace that would parse the generated error stack trace and extract only the last error instead of storing the entire stack trace.

from messenger-azure-queue-transport.

SpartakusMd avatar SpartakusMd commented on August 16, 2024

Hey @alexandrubau, I'm preparing a fix for this bug. My approach would be to limit the stack trace in the exception to 5 elements. I see benefits in keeping the flattened exception with the previous exception for debug purposes. What do you think?

But I have a question related to the symfony supported versions. The place the exception is stored changed in symfony/messenger:5.2

The RedeliveryStamp will no longer be populated with error data. This information is now stored in the ErrorDetailsStamp instead.

Seeing as symfony 5.4 is the oldest maintained version, could we remove support for symfony <5.2? If not, I will include a backward compatibility layer.

Update: used a compatibility layer.

from messenger-azure-queue-transport.

alexandrubau avatar alexandrubau commented on August 16, 2024

I agree with your suggestion. We can keep only the last X elements from the exception stack trace. I'm thinking that maybe we can make this configurable. I'm proposing the parameter stack_trace_limit, and it can be used like so: stack_trace_limit: 5. What do you think?

In my opinion we should have a thin compatibility layer in order to support Symfony versions < 5.2.

from messenger-azure-queue-transport.

alexandrubau avatar alexandrubau commented on August 16, 2024

Please ignore my recommendation for stack_trace_limit configuration param. I see that you already created a Pull Request and the behaviour to trim stack trace is enabled by default. And I think this is better.

from messenger-azure-queue-transport.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.