Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
jaeger-browser
Advanced tools
jaeger-browser
This repo is to help you submit Jaeger traces from your browser. It is a workaround until a browser client is implemented.
It contains a Python package that runs a REST API which submits traces locally.
It also contains a TypeScript library that connects to this REST API.
If you want to use this alongside your Jupyter server, check out
jupyter-jaeger
. There is an example in that repo of starting a span in a kernel server side and then continueing it on the clien side.
In turn, we use that to instrument plotting interactive Vega visualizations with a Python backend.
First get the REST server installed and started:
# install jaeger-all-in-one
conda -c conda-forge install jaeger
# Install the REST server
pip install jaeger_browser
# Start jaeger all in one
jaeger-all-in-one
# Start the REST server
env PORT=8080 jaeger-browser
Then install the client side library and connect to it:
yarn add jaeger-browser
import {Client} from 'jaeger-browser';
const client = new Client(new URL('http://localhost:8080/'))
async function doThings(originalExtractedScan: object): Promise<object> {
// Start a span based on some text-map encoded data
const span = await client.startSpanExtract({
name: 'new-span',
reference: originalExtractedScan,
relationship: 'child_of'
});
// create a new span under it
const newSpan = await client.startSpan({
name: 'other-span',
reference: span,
relationship: 'child_of'
})
// Finish this inner span
await client.finishSpan(newSpan);
// return the span we started text-map encoded
return await client.injectSpan(span);
}
FAQs
A library for saving traces to jaeger
The npm package jaeger-browser receives a total of 1 weekly downloads. As such, jaeger-browser popularity was classified as not popular.
We found that jaeger-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.