Skip to content

Add support for pipelined_get in Dalli meta protocol instrumentation #3453

@genya0407

Description

@genya0407

Is your feature request related to a problem? Please describe.

When using Dalli (v3.2.0+) with the meta protocol enabled, the pipelined_get method is not currently instrumented.

Feature Description

Support pipelined_get instrumentation for meta protocol for Dalli instrumentation.
It appears that updating the following code would solve this.

if supports_binary_protocol?
::Dalli::Protocol::Binary
else
::Dalli::Server
end.class_eval do

For example:

if supports_meta_protocol? # check Dalli's version is larger than or equal to 3.2.0
  ::Dalli::Protocol::Base # with this, both meta and binary protocol are instrumented
elsif supports_binary_protocol?
  ::Dalli::Protocol::Binary
else
  ::Dalli::Server
end.class_eval do

Describe Alternatives

  • Implementing monkey patches in the user's project
  • Using binary protocol
    • Note: Since AWS Elasticache does not support the binary protocol, it is impossible to switch protocols when using it.

Additional context

I see that the meta protocol is not currently supported, so this problem might be a known issue.

Priority

Nice to Have

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityTo tag external issues and PRs submitted by the communityfeature requestTo tag feature request after Hero Triage for PM to disposition

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions