> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Jaeger

> Virtualize Jaeger services and traces as read-only JSON files.

Connect to an existing Jaeger query service. Set `host` to its base URL,
such as `http://localhost:16686`.

For SDK guides, see [Jaeger (Python)](https://docs.mirage.strukto.ai/python/vfs/jaeger.md) and [Jaeger (TypeScript)](https://docs.mirage.strukto.ai/typescript/setup/jaeger.md).

## Connect

> [tab] Python
>
> ```python theme={null}
> import asyncio
>
> from mirage import Workspace
> from mirage.vfs.jaeger import JaegerConfig, JaegerVFS
>
>
> async def main() -> None:
>     ws = Workspace({
>         "/jaeger": JaegerVFS(JaegerConfig(host="http://localhost:16686")),
>     })
>     result = await ws.shell("ls /jaeger/services")
>     print(await result.stdout_str(), end="")
>     await ws.close()
>
>
> asyncio.run(main())
> ```

> [tab] TypeScript
>
> ```typescript theme={null}
> import { JaegerVFS, Workspace } from '@struktoai/mirage-node'
>
> const ws = new Workspace({
>   '/jaeger': new JaegerVFS({ host: 'http://localhost:16686' }),
> })
> const result = await ws.shell('ls /jaeger/services')
> process.stdout.write(result.stdoutText)
> await ws.close()
> ```

> [tab] YAML
>
> ```yaml theme={null}
> mounts:
>   /jaeger:
>     vfs: jaeger
>     config:
>       host: http://localhost:16686
> ```

## Browse traces

Each service has an operations list and a directory of traces:

```text theme={null}
/jaeger/services/<service>/
  operations.json
  traces/
    <trace-id>.json
```

Use `ls` to find services and traces, then `cat` or `jq` to read a trace.
Files are read-only. Trace listings return up to 100 traces per service by
default; set `default_trace_limit` in Python or YAML, or `defaultTraceLimit`
in TypeScript, to change the limit.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.