Skip to content

Conversation

@kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented Nov 14, 2025

refs https://jsw.ibm.com/browse/INSTA-43861

This is what will happen:

  • any traces who are captured early, are added to the span buffer
  • sending them out too early ends in: Failed to transmit spans, will retry in 1000 ms. Failed to send data to agent via POST /com.instana.plugin.nodejs/traces.33618. Got status code 400
  • as soon as the agent connection is stable, they are send out correctly

This proofs that immediate activation works as expected.


async waitUntilAgentHasStarted() {
const url = `http://127.0.0.1:${this.agentPort}`;
const url = `http://127.0.0.1:${this.agentPort}/ping`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will outsource to main separately.

@kirrg001 kirrg001 marked this pull request as ready for review November 14, 2025 12:05
@kirrg001 kirrg001 requested a review from a team as a code owner November 14, 2025 12:06
Copy link
Contributor

@aryamohanan aryamohanan left a comment

Choose a reason for hiding this comment

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

Nice to see this env var getting some attention 😍 Pre-approving, though the tests seem hung.

@kirrg001 kirrg001 force-pushed the test-activate-imm branch 3 times, most recently from 251baca to 9543359 Compare November 18, 2025 07:23
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants