sourcegraph/cmd/symbols
Erik Seliger 7dc2707fff
chore: Break dependency of internal/trace on conf (#62177)
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>
2024-04-30 21:12:39 +02:00
..
fetcher bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00
gitserver Move ArchiveReader's git exec command to gitcli (#59933) 2024-02-13 13:40:45 +02:00
internal all: use observation.TestContextTB instead of TestContext (#61751) 2024-04-10 14:07:39 +02:00
observability Housekeeping: Rename variables to avoid collisions with packages (#47179) 2023-01-31 16:28:43 +01:00
parser conf: Move most confvalidators into common package (#61810) 2024-04-12 06:30:52 +02:00
shared chore: Break dependency of internal/trace on conf (#62177) 2024-04-30 21:12:39 +02:00
squirrel chore: Remove dead code (#61899) 2024-04-16 10:17:47 +02:00
types Remove App from codebase (#59115) 2023-12-21 01:07:05 +01:00
build-ctags.sh local: hotfix ctags mess with symbols (#55196) 2023-07-21 12:50:34 +00:00
BUILD.bazel Build images end-to-end using Bazel v2 (#61845) 2024-04-12 16:18:43 +01:00
build.sh sg: restore symbols for sg (#53885) 2023-06-21 19:47:27 +00:00
cargo-config.sh syntax-highlighter: initial ctags work (w/ musl scip-ctags) (#52643) 2023-05-30 17:19:39 -04:00
CODENOTIFY all: add keegancsmith to CODENOTIFY for many pkgs (#14241) 2020-09-29 11:03:53 +02:00
ctags-install-alpine.sh symbols: minor update last bumped comment (#58455) 2023-11-21 14:39:52 +02:00
Dockerfile bzl: Bump Rust version (#58223) 2023-11-20 13:43:41 +01:00
image_test.yaml ctags: ensure that binary has correct featureset (#60084) 2024-02-05 09:39:06 +00:00
main.go remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
README.md Update symbols docs (#31600) 2022-02-26 01:28:28 +00:00

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.