FluidFramework/tools/telemetry-generator
dependabot[bot] e2a1aa0229
build(deps): bump cross-spawn in /tools/telemetry-generator (#23160)
Bumps and [cross-spawn](https://github.com/moxystudio/node-cross-spawn).
These dependencies needed to be updated together.
Updates `cross-spawn` from 6.0.5 to 7.0.6
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md">cross-spawn's
changelog</a>.</em></p>
<blockquote>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.5...v7.0.6">7.0.6</a>
(2024-11-18)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>update cross-spawn version to 7.0.5 in package-lock.json (<a
href="f700743918">f700743</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.4...v7.0.5">7.0.5</a>
(2024-11-07)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>fix escaping bug introduced by backtracking (<a
href="640d391fde">640d391</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.4">7.0.4</a>
(2024-11-07)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>disable regexp backtracking (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/160">#160</a>)
(<a
href="5ff3a07d9a">5ff3a07</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.2...v7.0.3">7.0.3</a>
(2020-05-25)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>detect path key based on correct environment (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/133">#133</a>)
(<a
href="159e7e9785">159e7e9</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.1...v7.0.2">7.0.2</a>
(2020-04-04)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>fix worker threads in Node &gt;=11.10.0 (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/132">#132</a>)
(<a
href="6c5b4f0158">6c5b4f0</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.0...v7.0.1">7.0.1</a>
(2019-10-07)</h3>
<h3>Bug Fixes</h3>
<ul>
<li><strong>core:</strong> support worker threads (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/127">#127</a>)
(<a
href="https://github.com/moxystudio/node-cross-spawn/commit/cfd49c9">cfd49c9</a>)</li>
</ul>
<h2><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.0">7.0.0</a>
(2019-09-03)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li>
<p>drop support for Node.js &lt; 8</p>
</li>
<li>
<p>drop support for versions below Node.js 8 (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/125">#125</a>)
(<a
href="https://github.com/moxystudio/node-cross-spawn/commit/16feb53">16feb53</a>)</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="77cd97f3ca"><code>77cd97f</code></a>
chore(release): 7.0.6</li>
<li><a
href="6717de49ff"><code>6717de4</code></a>
chore: upgrade standard-version</li>
<li><a
href="f700743918"><code>f700743</code></a>
fix: update cross-spawn version to 7.0.5 in package-lock.json</li>
<li><a
href="9a7e3b2165"><code>9a7e3b2</code></a>
chore: fix build status badge</li>
<li><a
href="085268352d"><code>0852683</code></a>
chore(release): 7.0.5</li>
<li><a
href="640d391fde"><code>640d391</code></a>
fix: fix escaping bug introduced by backtracking</li>
<li><a
href="bff0c87c8b"><code>bff0c87</code></a>
chore: remove codecov</li>
<li><a
href="a7c6abc6fe"><code>a7c6abc</code></a>
chore: replace travis with github workflows</li>
<li><a
href="9b9246e096"><code>9b9246e</code></a>
chore(release): 7.0.4</li>
<li><a
href="5ff3a07d9a"><code>5ff3a07</code></a>
fix: disable regexp backtracking (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/160">#160</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.6">compare
view</a></li>
</ul>
</details>
<br />

Updates `cross-spawn` from 7.0.3 to 7.0.6
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md">cross-spawn's
changelog</a>.</em></p>
<blockquote>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.5...v7.0.6">7.0.6</a>
(2024-11-18)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>update cross-spawn version to 7.0.5 in package-lock.json (<a
href="f700743918">f700743</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.4...v7.0.5">7.0.5</a>
(2024-11-07)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>fix escaping bug introduced by backtracking (<a
href="640d391fde">640d391</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.4">7.0.4</a>
(2024-11-07)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>disable regexp backtracking (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/160">#160</a>)
(<a
href="5ff3a07d9a">5ff3a07</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.2...v7.0.3">7.0.3</a>
(2020-05-25)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>detect path key based on correct environment (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/133">#133</a>)
(<a
href="159e7e9785">159e7e9</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.1...v7.0.2">7.0.2</a>
(2020-04-04)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>fix worker threads in Node &gt;=11.10.0 (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/132">#132</a>)
(<a
href="6c5b4f0158">6c5b4f0</a>)</li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.0...v7.0.1">7.0.1</a>
(2019-10-07)</h3>
<h3>Bug Fixes</h3>
<ul>
<li><strong>core:</strong> support worker threads (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/127">#127</a>)
(<a
href="https://github.com/moxystudio/node-cross-spawn/commit/cfd49c9">cfd49c9</a>)</li>
</ul>
<h2><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.0">7.0.0</a>
(2019-09-03)</h2>
<h3>⚠ BREAKING CHANGES</h3>
<ul>
<li>
<p>drop support for Node.js &lt; 8</p>
</li>
<li>
<p>drop support for versions below Node.js 8 (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/125">#125</a>)
(<a
href="https://github.com/moxystudio/node-cross-spawn/commit/16feb53">16feb53</a>)</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="77cd97f3ca"><code>77cd97f</code></a>
chore(release): 7.0.6</li>
<li><a
href="6717de49ff"><code>6717de4</code></a>
chore: upgrade standard-version</li>
<li><a
href="f700743918"><code>f700743</code></a>
fix: update cross-spawn version to 7.0.5 in package-lock.json</li>
<li><a
href="9a7e3b2165"><code>9a7e3b2</code></a>
chore: fix build status badge</li>
<li><a
href="085268352d"><code>0852683</code></a>
chore(release): 7.0.5</li>
<li><a
href="640d391fde"><code>640d391</code></a>
fix: fix escaping bug introduced by backtracking</li>
<li><a
href="bff0c87c8b"><code>bff0c87</code></a>
chore: remove codecov</li>
<li><a
href="a7c6abc6fe"><code>a7c6abc</code></a>
chore: replace travis with github workflows</li>
<li><a
href="9b9246e096"><code>9b9246e</code></a>
chore(release): 7.0.4</li>
<li><a
href="5ff3a07d9a"><code>5ff3a07</code></a>
fix: disable regexp backtracking (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/160">#160</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/moxystudio/node-cross-spawn/compare/v6.0.5...v7.0.6">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/FluidFramework/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-20 12:59:44 -08:00
..
bin Processing of memory performance test results (#11665) 2022-08-31 18:36:28 -05:00
src fix(@fluid-tools/benchmark): Make telemetry generator handler to log error (#22689) 2024-10-10 11:24:06 -07:00
.eslintrc.cjs refactor(telemetry-generator): Upgrade eslint config to "recommended" and fix violations in code (#21076) 2024-05-14 21:15:22 +00:00
.mocharc.cjs fix(@fluid-tools/benchmark): Make telemetry generator handler to log error (#22689) 2024-10-10 11:24:06 -07:00
LICENSE Processing of memory performance test results (#11665) 2022-08-31 18:36:28 -05:00
README.md build(telemetry-generator): Add prettier enforcement and format code (#13816) 2023-01-26 13:57:33 -08:00
package-lock.json build(deps): bump cross-spawn in /tools/telemetry-generator (#23160) 2024-11-20 12:59:44 -08:00
package.json fix(@fluid-tools/benchmark): Make telemetry generator handler to log error (#22689) 2024-10-10 11:24:06 -07:00
prettier.config.cjs build(telemetry-generator): Add prettier enforcement and format code (#13816) 2023-01-26 13:57:33 -08:00
tsconfig.json fix(@fluid-tools/benchmark): Make telemetry generator handler to log error (#22689) 2024-10-10 11:24:06 -07:00

README.md

@fluid-tools/telemetry-generator

Internal tool to take JSON files and generate custom telemetry events based on the data in them. Used, for example, to process the output of our performance tests and write relevant metrics to our monitoring systems.

Running the tool

Install dependencies and build the project:

npm i
npm run build

This tool leverages oclif. To run it manually, you need to call oclif's run script in the bin folder, like so:

node bin/run <arguments to the tool>

The start npm script can be used as an alternative to node bin/run, with an extra separator for the arguments, like so:

npm run start -- <arguments to the tool>

The tool has two required arguments:

  • --dir: the path(s) to one or more folders which contain the JSON files to be processed
  • --handlerModule: the absolute path to a JavaScript file that exports a handler function which can process those JSON files. Relative paths are technically supported but you might need a good understanding of Node's module resolution to use them successfully. In short, a relative path will be resolved from the location of the executing file at runtime, and which file that is is not obvious when we're using OCLIF.

Run node bin/run --help for details on the arguments.

Processing the Fluid Framework performance tests

When this tool is used to process our performance tests, the folders should contain files generated by the @fluid-tools/benchmark tool, and the handlers defined here can be used to process them. Make sure to use the correct type of handler (execution time / memory usage) for the output files you want to process. Only one type of file can be processed during a single run of this tool.

Handling custom files

If you want to process your own JSON files with this tool you just need to pass a custom handler to it. See the handler template for details on how that file should look like. Then call the tool as usual, e.g.:

node bin/run --handlerModule /absolute/path/to/your/handler.js --dir /path/to/your/files