{
"info": {
"author": "Saul Shanabrook",
"author_email": "saul@quansight.com",
"bugtrack_url": null,
"classifiers": [
"License :: OSI Approved :: MIT License"
],
"description": "# `jaeger-browser`  \n\n\nThis repo is to help you submit [Jaeger](https://www.jaegertracing.io/) traces from your browser. It is a workaround\nuntil [a browser client is implemented](https://github.com/jaegertracing/jaeger-client-node/issues/109).\n\n\nIt contains a Python package that runs a REST API which submits traces locally.\n\nIt also contains a TypeScript library that connects to this REST API.\n\n\nIf you want to use this alongside your Jupyter server, check out\n[`jupyter-jaeger`](https://github.com/Quansight/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.\n\nIn turn, we use that to instrument [plotting interactive Vega visualizations with a Python backend](https://github.com/quansight/ibis-vega-transform).\n\n## Limitations\n\n* Doesn't implement full Jaeger API just a subset I needed. PRs welcome.\n* Hard coded to connect to a local Jaeger server. PRs welcome.\n* No sampling implemented, it will collect all traces. PRs welcome.\n\n\n\n## Usage\n\nFirst get the REST server installed and started:\n\n```bash\n# install jaeger-all-in-one\nconda -c conda-forge install jaeger\n\n# Install the REST server\npip install jaeger_browser\n\n# Start jaeger all in one\njaeger-all-in-one\n# Start the REST server\nenv PORT=8080 jaeger-browser\n```\n\n\nThen install the client side library and connect to it:\n\n```bash\nyarn add jaeger-browser\n```\n\n```typescript\n\nimport {Client} from 'jaeger-browser';\n\n\nconst client = new Client(new URL('http://localhost:8080/'))\n\n\n\nasync function doThings(originalExtractedScan: object): Promise