sourcegraph/cmd/symbols/shared
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
..
BUILD.bazel gitserver: Unify filereader API (#59782) 2024-01-24 13:53:57 +01:00
debug.go grpc: add support for frontend's indexed-search internal API methods (#47710) 2023-03-08 02:15:54 +00:00
main.go chore: Break dependency of internal/trace on conf (#62177) 2024-04-30 21:12:39 +02:00
service.go remove enterprise symbols service 2023-10-04 15:45:16 -05:00
setup.go symbols: use concurrency safe map for repoToSize in rockskip (#62114) 2024-04-24 10:40:00 +02:00
sqlite.go Symbols: Remove unused ctags config (#61701) 2024-04-09 08:21:32 -07:00