File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -225,9 +225,10 @@ function applySpanBatchingConfiguration(agentResponse) {
225
225
226
226
/**
227
227
* - The agent configuration currently uses a pipe ('|') as a separator for endpoints.
228
- * - This function splits the string by both pipe ('|') and comma (',') to ensure compatibility.
228
+ * - This function supports both ('|') and comma (',') to ensure future compatibility.
229
229
* - Additionally, it supports the `string[]` format for backward compatibility,
230
- * as this was the previously used standard.
230
+ * as this was the previously used standard. The final design decision is not yet completed.
231
+ * https://github.ibm.com/instana/requests-for-discussion/pull/84
231
232
*
232
233
* @param {AgentAnnounceResponse } agentResponse
233
234
*/
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ class AgentStubControls {
43
43
env . KAFKA_TRACE_CORRELATION = opts . kafkaConfig . traceCorrelation . toString ( ) ;
44
44
}
45
45
}
46
+ // This is not the INSTANA_IGNORE_ENDPOINTS env. We use this "IGNORE_ENDPOINTS" env for the fake agent to
47
+ // serve the ignore endpoints config to our tracer.
46
48
if ( opts . ignoreEndpoints ) {
47
49
env . IGNORE_ENDPOINTS = JSON . stringify ( opts . ignoreEndpoints ) ;
48
50
}
Original file line number Diff line number Diff line change @@ -723,5 +723,9 @@ function normalizeIgnoreEndpoints(config) {
723
723
`Failed to parse INSTANA_IGNORE_ENDPOINTS: ${ process . env . INSTANA_IGNORE_ENDPOINTS } . Error: ${ error . message } `
724
724
) ;
725
725
}
726
+ } else {
727
+ return ;
726
728
}
729
+
730
+ logger . debug ( `Ignore endpoints have been configured: ${ JSON . stringify ( config . tracing . ignoreEndpoints ) } ` ) ;
727
731
}
You can’t perform that action at this time.
0 commit comments