@swmansion/argent 0.24.1-next.12 → 0.24.1-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli-cmds.mjs CHANGED
@@ -20976,31 +20976,51 @@ function toAttributes2(record2) {
20976
20976
  }
20977
20977
  return attributes;
20978
20978
  }
20979
- var OTLP_HEADER_ENV_VARS = [
20979
+ var CLEARED_OTLP_ENV_VARS = [
20980
20980
  "OTEL_EXPORTER_OTLP_HEADERS",
20981
- "OTEL_EXPORTER_OTLP_LOGS_HEADERS"
20981
+ "OTEL_EXPORTER_OTLP_LOGS_HEADERS",
20982
+ "OTEL_EXPORTER_OTLP_CERTIFICATE",
20983
+ "OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE",
20984
+ "OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE",
20985
+ "OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE",
20986
+ "OTEL_EXPORTER_OTLP_CLIENT_KEY",
20987
+ "OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY"
20982
20988
  ];
20989
+ var NO_COMPRESSION = "none";
20983
20990
  function createExporter(config3) {
20984
- const saved = OTLP_HEADER_ENV_VARS.map((name) => [name, process.env[name]]);
20985
- for (const name of OTLP_HEADER_ENV_VARS) delete process.env[name];
20991
+ const saved = CLEARED_OTLP_ENV_VARS.map((name) => [name, process.env[name]]);
20992
+ for (const name of CLEARED_OTLP_ENV_VARS) delete process.env[name];
20986
20993
  try {
20987
20994
  return new OTLPLogExporter({
20988
20995
  url: config3.endpoint,
20989
20996
  headers: { authorization: `Bearer ${config3.token}` },
20990
20997
  timeoutMillis: EXPORT_TIMEOUT_MS,
20998
+ // Left unset, the SDK takes this from OTEL_EXPORTER_OTLP_COMPRESSION (or
20999
+ // its _LOGS_ variant), so a machine that already runs OpenTelemetry would
21000
+ // gzip argent's batches - a request shaped differently from the one the
21001
+ // ingestion side is sized and tested against, decided by a variable set
21002
+ // for something else. Unlike the variables cleared above, one explicit
21003
+ // value settles it: the SDK takes user-provided over env here rather than
21004
+ // merging the two or reading anything to decide.
21005
+ compression: NO_COMPRESSION,
20991
21006
  // The exporter bounds a request with `req.setTimeout()`, which Node only
20992
21007
  // arms once the socket is CONNECTED — so a collector whose address drops
20993
21008
  // packets (corporate egress filter, dead host behind a firewall) leaves a
20994
- // socket stuck connecting that no export deadline can reach, holding the
20995
- // process open for the OS connect timeout after shutdown() has resolved.
20996
- // The agent's socket timeout is armed when the socket is CREATED, so it
20997
- // covers connect too: it fires, the request emits 'timeout', and the
20998
- // exporter's handler destroys it.
21009
+ // socket stuck in the connecting state that no export deadline can reach,
21010
+ // holding the process open for the OS connect timeout (~75s on macOS)
21011
+ // after shutdown() has already resolved. The agent's socket timeout is
21012
+ // armed when the socket is CREATED, so it also covers connect: it fires,
21013
+ // the request emits 'timeout', and the exporter's handler destroys it.
20999
21014
  //
21000
- // keepAlive is restated because supplying httpAgentOptions at all
21001
- // replaces the agent the SDK would otherwise build, whose default is
21002
- // keepAlive: true; without it the long-lived tool-server pays a fresh
21003
- // TCP+TLS handshake for every batch.
21015
+ // keepAlive is restated to match the agent the SDK would otherwise build,
21016
+ // whose default is keepAlive: true supplying httpAgentOptions at all
21017
+ // replaces it, and keepAlive: false would open and close a socket per
21018
+ // request. It does NOT save the handshake across the 10s batch cadence:
21019
+ // this same timeout reaps an idle keep-alive socket, so one parked in the
21020
+ // pool between batches is destroyed at EXPORT_TIMEOUT_MS, long before the
21021
+ // next batch reaches for it. Reuse survives only for batches flushed
21022
+ // within the timeout of each other, e.g. a force-flush of a queue that
21023
+ // spans more than one batch.
21004
21024
  httpAgentOptions: { timeout: EXPORT_TIMEOUT_MS, keepAlive: true }
21005
21025
  });
21006
21026
  } finally {
@@ -21837,7 +21857,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21837
21857
  var SESSION_ID2 = randomUUID5();
21838
21858
  function readCliVersion() {
21839
21859
  if (true) {
21840
- return "0.24.1-next.12";
21860
+ return "0.24.1-next.13";
21841
21861
  }
21842
21862
  return "0.0.0";
21843
21863
  }
@@ -15468,31 +15468,51 @@ function toAttributes2(record) {
15468
15468
  }
15469
15469
  return attributes;
15470
15470
  }
15471
- var OTLP_HEADER_ENV_VARS = [
15471
+ var CLEARED_OTLP_ENV_VARS = [
15472
15472
  "OTEL_EXPORTER_OTLP_HEADERS",
15473
- "OTEL_EXPORTER_OTLP_LOGS_HEADERS"
15473
+ "OTEL_EXPORTER_OTLP_LOGS_HEADERS",
15474
+ "OTEL_EXPORTER_OTLP_CERTIFICATE",
15475
+ "OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE",
15476
+ "OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE",
15477
+ "OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE",
15478
+ "OTEL_EXPORTER_OTLP_CLIENT_KEY",
15479
+ "OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY"
15474
15480
  ];
15481
+ var NO_COMPRESSION = "none";
15475
15482
  function createExporter(config) {
15476
- const saved = OTLP_HEADER_ENV_VARS.map((name) => [name, process.env[name]]);
15477
- for (const name of OTLP_HEADER_ENV_VARS) delete process.env[name];
15483
+ const saved = CLEARED_OTLP_ENV_VARS.map((name) => [name, process.env[name]]);
15484
+ for (const name of CLEARED_OTLP_ENV_VARS) delete process.env[name];
15478
15485
  try {
15479
15486
  return new OTLPLogExporter({
15480
15487
  url: config.endpoint,
15481
15488
  headers: { authorization: `Bearer ${config.token}` },
15482
15489
  timeoutMillis: EXPORT_TIMEOUT_MS,
15490
+ // Left unset, the SDK takes this from OTEL_EXPORTER_OTLP_COMPRESSION (or
15491
+ // its _LOGS_ variant), so a machine that already runs OpenTelemetry would
15492
+ // gzip argent's batches - a request shaped differently from the one the
15493
+ // ingestion side is sized and tested against, decided by a variable set
15494
+ // for something else. Unlike the variables cleared above, one explicit
15495
+ // value settles it: the SDK takes user-provided over env here rather than
15496
+ // merging the two or reading anything to decide.
15497
+ compression: NO_COMPRESSION,
15483
15498
  // The exporter bounds a request with `req.setTimeout()`, which Node only
15484
15499
  // arms once the socket is CONNECTED — so a collector whose address drops
15485
15500
  // packets (corporate egress filter, dead host behind a firewall) leaves a
15486
- // socket stuck connecting that no export deadline can reach, holding the
15487
- // process open for the OS connect timeout after shutdown() has resolved.
15488
- // The agent's socket timeout is armed when the socket is CREATED, so it
15489
- // covers connect too: it fires, the request emits 'timeout', and the
15490
- // exporter's handler destroys it.
15501
+ // socket stuck in the connecting state that no export deadline can reach,
15502
+ // holding the process open for the OS connect timeout (~75s on macOS)
15503
+ // after shutdown() has already resolved. The agent's socket timeout is
15504
+ // armed when the socket is CREATED, so it also covers connect: it fires,
15505
+ // the request emits 'timeout', and the exporter's handler destroys it.
15491
15506
  //
15492
- // keepAlive is restated because supplying httpAgentOptions at all
15493
- // replaces the agent the SDK would otherwise build, whose default is
15494
- // keepAlive: true; without it the long-lived tool-server pays a fresh
15495
- // TCP+TLS handshake for every batch.
15507
+ // keepAlive is restated to match the agent the SDK would otherwise build,
15508
+ // whose default is keepAlive: true supplying httpAgentOptions at all
15509
+ // replaces it, and keepAlive: false would open and close a socket per
15510
+ // request. It does NOT save the handshake across the 10s batch cadence:
15511
+ // this same timeout reaps an idle keep-alive socket, so one parked in the
15512
+ // pool between batches is destroyed at EXPORT_TIMEOUT_MS, long before the
15513
+ // next batch reaches for it. Reuse survives only for batches flushed
15514
+ // within the timeout of each other, e.g. a force-flush of a queue that
15515
+ // spans more than one batch.
15496
15516
  httpAgentOptions: { timeout: EXPORT_TIMEOUT_MS, keepAlive: true }
15497
15517
  });
15498
15518
  } finally {
@@ -16690,7 +16710,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16690
16710
  var SESSION_ID = randomUUID4();
16691
16711
  function readCliVersion() {
16692
16712
  if (true) {
16693
- return "0.24.1-next.12";
16713
+ return "0.24.1-next.13";
16694
16714
  }
16695
16715
  return "0.0.0";
16696
16716
  }
@@ -93813,31 +93813,51 @@ function toAttributes2(record2) {
93813
93813
  }
93814
93814
  return attributes;
93815
93815
  }
93816
- var OTLP_HEADER_ENV_VARS = [
93816
+ var CLEARED_OTLP_ENV_VARS = [
93817
93817
  "OTEL_EXPORTER_OTLP_HEADERS",
93818
- "OTEL_EXPORTER_OTLP_LOGS_HEADERS"
93818
+ "OTEL_EXPORTER_OTLP_LOGS_HEADERS",
93819
+ "OTEL_EXPORTER_OTLP_CERTIFICATE",
93820
+ "OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE",
93821
+ "OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE",
93822
+ "OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE",
93823
+ "OTEL_EXPORTER_OTLP_CLIENT_KEY",
93824
+ "OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY"
93819
93825
  ];
93826
+ var NO_COMPRESSION = "none";
93820
93827
  function createExporter(config2) {
93821
- const saved = OTLP_HEADER_ENV_VARS.map((name) => [name, process.env[name]]);
93822
- for (const name of OTLP_HEADER_ENV_VARS) delete process.env[name];
93828
+ const saved = CLEARED_OTLP_ENV_VARS.map((name) => [name, process.env[name]]);
93829
+ for (const name of CLEARED_OTLP_ENV_VARS) delete process.env[name];
93823
93830
  try {
93824
93831
  return new OTLPLogExporter({
93825
93832
  url: config2.endpoint,
93826
93833
  headers: { authorization: `Bearer ${config2.token}` },
93827
93834
  timeoutMillis: EXPORT_TIMEOUT_MS,
93835
+ // Left unset, the SDK takes this from OTEL_EXPORTER_OTLP_COMPRESSION (or
93836
+ // its _LOGS_ variant), so a machine that already runs OpenTelemetry would
93837
+ // gzip argent's batches - a request shaped differently from the one the
93838
+ // ingestion side is sized and tested against, decided by a variable set
93839
+ // for something else. Unlike the variables cleared above, one explicit
93840
+ // value settles it: the SDK takes user-provided over env here rather than
93841
+ // merging the two or reading anything to decide.
93842
+ compression: NO_COMPRESSION,
93828
93843
  // The exporter bounds a request with `req.setTimeout()`, which Node only
93829
93844
  // arms once the socket is CONNECTED — so a collector whose address drops
93830
93845
  // packets (corporate egress filter, dead host behind a firewall) leaves a
93831
- // socket stuck connecting that no export deadline can reach, holding the
93832
- // process open for the OS connect timeout after shutdown() has resolved.
93833
- // The agent's socket timeout is armed when the socket is CREATED, so it
93834
- // covers connect too: it fires, the request emits 'timeout', and the
93835
- // exporter's handler destroys it.
93846
+ // socket stuck in the connecting state that no export deadline can reach,
93847
+ // holding the process open for the OS connect timeout (~75s on macOS)
93848
+ // after shutdown() has already resolved. The agent's socket timeout is
93849
+ // armed when the socket is CREATED, so it also covers connect: it fires,
93850
+ // the request emits 'timeout', and the exporter's handler destroys it.
93836
93851
  //
93837
- // keepAlive is restated because supplying httpAgentOptions at all
93838
- // replaces the agent the SDK would otherwise build, whose default is
93839
- // keepAlive: true; without it the long-lived tool-server pays a fresh
93840
- // TCP+TLS handshake for every batch.
93852
+ // keepAlive is restated to match the agent the SDK would otherwise build,
93853
+ // whose default is keepAlive: true supplying httpAgentOptions at all
93854
+ // replaces it, and keepAlive: false would open and close a socket per
93855
+ // request. It does NOT save the handshake across the 10s batch cadence:
93856
+ // this same timeout reaps an idle keep-alive socket, so one parked in the
93857
+ // pool between batches is destroyed at EXPORT_TIMEOUT_MS, long before the
93858
+ // next batch reaches for it. Reuse survives only for batches flushed
93859
+ // within the timeout of each other, e.g. a force-flush of a queue that
93860
+ // spans more than one batch.
93841
93861
  httpAgentOptions: { timeout: EXPORT_TIMEOUT_MS, keepAlive: true }
93842
93862
  });
93843
93863
  } finally {
@@ -94682,7 +94702,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94682
94702
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94683
94703
  function readCliVersion() {
94684
94704
  if (true) {
94685
- return "0.24.1-next.12";
94705
+ return "0.24.1-next.13";
94686
94706
  }
94687
94707
  return "0.0.0";
94688
94708
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.24.1-next.12",
3
+ "version": "0.24.1-next.13",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",