File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
micrometer-observation/src/main/java/io/micrometer/observation/transport Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ public class ReceiverContext<C> extends Observation.Context {
36
36
37
37
private C carrier ;
38
38
39
+ @ Nullable
40
+ private String remoteServiceName ;
41
+
39
42
/**
40
43
* Creates a new instance of {@link ReceiverContext}.
41
44
* @param getter propagator getter
@@ -70,4 +73,21 @@ public Kind getKind() {
70
73
return kind ;
71
74
}
72
75
76
+ /**
77
+ * Return optional name for the service from which the message is polled.
78
+ * @return optional name for the service from which the message is polled
79
+ */
80
+ @ Nullable
81
+ public String getRemoteServiceName () {
82
+ return remoteServiceName ;
83
+ }
84
+
85
+ /**
86
+ * Set optional name for the service from which the message is polled.
87
+ * @param remoteServiceName name of the service from which the message is polled
88
+ */
89
+ public void setRemoteServiceName (@ Nullable String remoteServiceName ) {
90
+ this .remoteServiceName = remoteServiceName ;
91
+ }
92
+
73
93
}
You can’t perform that action at this time.
0 commit comments