diff --git a/inmem_endpoint.go b/inmem_endpoint.go
index <HASH>..<HASH> 100644
--- a/inmem_endpoint.go
+++ b/inmem_endpoint.go
@@ -42,8 +42,8 @@ type SampledValue struct {
 }
 
 // deepCopy allocates a new instance of AggregateSample
-func (source SampledValue) deepCopy() SampledValue {
-	dest := source
+func (source *SampledValue) deepCopy() SampledValue {
+	dest := *source
 	if source.AggregateSample != nil {
 		dest.AggregateSample = &AggregateSample{}
 		*dest.AggregateSample = *source.AggregateSample
modified SampledValue deepCopy() receiver to avoid potential extraneous copies