Skip to content

Extract remote host info from spymemecached#5049

Merged
amarziali merged 2 commits into
masterfrom
andrea.marziali/memcached-peer-info
Apr 28, 2023
Merged

Extract remote host info from spymemecached#5049
amarziali merged 2 commits into
masterfrom
andrea.marziali/memcached-peer-info

Conversation

@amarziali

Copy link
Copy Markdown
Contributor

What Does This Do

Extract remote peer connection info for memecached spans:

  • peer.hostname
  • peer.port
  • peer.ipv4

Motivation

Additional Notes

@amarziali
amarziali requested a review from a team as a code owner April 11, 2023 14:20
@amarziali amarziali added the inst: others All other instrumentations label Apr 11, 2023
@amarziali amarziali changed the title Extract remote hostname info from spymemecached Extract remote host info from spymemecached Apr 11, 2023
@amarziali
amarziali force-pushed the andrea.marziali/memcached-peer-info branch 3 times, most recently from 644a917 to 216c409 Compare April 12, 2023 12:08
@amarziali
amarziali force-pushed the andrea.marziali/memcached-peer-info branch from 216c409 to 2aca3df Compare April 24, 2023 12:33
@pr-commenter

pr-commenter Bot commented Apr 24, 2023

Copy link
Copy Markdown

Benchmarks

Parameters

Baseline Candidate
commit 1.13.0-SNAPSHOT~a40147a890 1.13.0-SNAPSHOT~2aca3df240
config baseline candidate
See matching parameters
Baseline Candidate
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 22 cases.

See unchanged results
scenario Δ mean execution_time
scenario:Startup-base-Agent same
scenario:Startup-base-Agent.start same
scenario:Startup-base-BytebuddyAgent same
scenario:Startup-base-GlobalTracer same
scenario:Startup-base-AppSec same
scenario:Startup-base-Remote Config same
scenario:Startup-base-Telemetry same
scenario:Startup-iast-Agent same
scenario:Startup-iast-Agent.start same
scenario:Startup-iast-BytebuddyAgent same
scenario:Startup-iast-GlobalTracer same
scenario:Startup-iast-AppSec same
scenario:Startup-iast-IAST same
scenario:Startup-iast-Remote Config same
scenario:Startup-iast-Telemetry same
scenario:Startup-waf-Agent same
scenario:Startup-waf-Agent.start unsure
[+0.001s; +0.010s] or [+0.083%; +1.008%]
scenario:Startup-waf-BytebuddyAgent same
scenario:Startup-waf-GlobalTracer unsure
[+0.972ms; +3.510ms] or [+0.442%; +1.596%]
scenario:Startup-waf-AppSec same
scenario:Startup-waf-Remote Config same
scenario:Startup-waf-Telemetry same

}

public static void muzzleCheck(OperationFuture operationFuture) {
// before 2.10.4 futures are not completing correctly. We stick at this as minimum version

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Still nice to have 2.10.4+ support vs 2.12+

try (final AgentScope scope = activateSpan(span)) {
DECORATE.afterStart(span);
DECORATE.onConnection(span, connection);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

With this change it's nice to have on a connection decoration in a more appropriate place than within this listener

@ygree ygree left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@amarziali
amarziali merged commit 2171610 into master Apr 28, 2023
@amarziali
amarziali deleted the andrea.marziali/memcached-peer-info branch April 28, 2023 08:48
@github-actions github-actions Bot added this to the 1.13.0 milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: others All other instrumentations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants