mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:31:48 +00:00
This PR adds an initializer function that will be called from the svcmain package through the call to tracer.Init. The reasoning behind this is that it's very easy to accidentally use a package that uses conf internally from a service like Cody Gateway, Appliance, Migrator, or other MSP services and just because we don't have any config source for the trace ID should not let the process stall entirely. To make it absolutely clear that a dependency is safe to use from a conf perspective, this change indicates that well by dropping the dependency on it entirely and making it another packages concern to pass this type down. Test plan: All tests for Sourcegraph are still passing. --------- Co-authored-by: Robert Lin <robert@bobheadxi.dev> |
||
|---|---|---|
| .. | ||
| fetcher | ||
| gitserver | ||
| internal | ||
| observability | ||
| parser | ||
| shared | ||
| squirrel | ||
| types | ||
| build-ctags.sh | ||
| BUILD.bazel | ||
| build.sh | ||
| cargo-config.sh | ||
| CODENOTIFY | ||
| ctags-install-alpine.sh | ||
| Dockerfile | ||
| image_test.yaml | ||
| main.go | ||
| README.md | ||
symbols
Indexes symbols in repositories using Ctags. Similar in architecture to searcher, except over ctags output.
The ctags output is stored in SQLite files on disk (one per repository@commit). Ctags processing is lazy, so it will occur only when you first query the symbols service. Subsequent queries will use the cached on-disk SQLite DB.
It is used by basic-code-intel to provide the jump-to-definition feature.
It supports regex queries, with prefix queries (^foo) and exact match queries (^foo$) optimized to perform index lookups. The symbols sidebar and search-based code intel benefit from these optimizations.