Skip to content

Skylight::Extensions::SourceLocation causes sustained p90 spike #296

Open
@colbymelvin

Description

@colbymelvin

Hello, I wanted to report an issue that my org ran into when upgrading to v5.0.0.

We read through the changelogs and noted the new Skylight::Extensions::SourceLocation being enabled by default. We assumed this was fine, and did not set SKYLIGHT_ENABLE_SOURCE_LOCATIONS=false.

Immediately after deploy, we saw p90 request durations spike to roughly 10x, followed by a sustained average of 2x normal duration after settling. This appears to mostly be caused by a considerable increase in Ruby execution time on every request. Post rollback, we saw our p90 durations consolidate around their normal patterns.

I've provided a screenshot. Note that the first vertical dotted line represents the deploy contains the Skylight v5.0.0 update. The last vertical dotted line represents the deploy containing the rollback.

Screen Shot 2021-03-16 at 10 39 25 AM

My understanding from reading the code is that Skylight::Extensions::SourceLocation is an experimental feature - should it be disabled by default?

At the very least, should the experimental nature of Skylight::Extensions::SourceLocation be highlighted somewhere? One has to go digging through the docs to find mention of this new feature, but the docs don't mention that it's experimental. The only indication I can find that alludes to Skylight::Extensions::SourceLocation being experimental is a single line of code in a spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions