Code AI platform with Code Search & Cody
Go to file
Robert Lin 352ec2c2f0
requestinteraction: add X-Sourcegraph-Interaction-ID propagation (#58016)
This change allows clients to provide an interaction ID, essentially a trace but maybe simpler for some scenarios, and have that be propagated throughout Sourcegraph systems implicitly. We can automatically add this to events (telemetry V2 and Cody Gateway). The implementation closely follows the patterns we have for `internal/requestclient` and `internal/actor`

If we land this mechanism, I'll follow up with an change that automatically injects these IDs into telemetry events within a context as well. If clients send a bunch of completion requests to the backend with this header, the interaction ID will automatically be added to the completion events recorded by the backend, like [these ones](https://sourcegraph.com/search?q=context:global+repo:sourcegraph/sourcegraph+.Record(...,+%22cody.completions%22,+...)&patternType=structural&sm=1&groupBy=repo), and any future events. Similarly, if clients set this header on outbound requests when recording events in the new telemetry (go/telemetry-v2), they'll get added as well - we can also consider adding an interaction ID as an explicit argument in the `recordEvent` GraphQL mutation to take precedence over the context interaction ID.
2023-11-22 20:09:39 +00:00
.aspect un-hardcode $DISPLAY for e2e tests to support non-headless local e2e test running (#57781) 2023-10-21 11:29:35 -10:00
.buildkite skip pre-command hook for aspect agent queue (#57942) 2023-10-27 12:06:52 +02:00
.github remove CODEOWNERS (#58452) 2023-11-21 08:54:20 +01:00
.vscode reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
client Update marketing homepage links from PCS (#58473) 2023-11-22 11:24:53 -06:00
cmd requestinteraction: add X-Sourcegraph-Interaction-ID propagation (#58016) 2023-11-22 20:09:39 +00:00
dev sg: add --sgtail to start command (#58434) 2023-11-21 11:13:49 +01:00
doc search jobs: allow repo predicates (#58454) 2023-11-22 09:44:34 +01:00
docker-images bzl: add missing oci_push rule for scip-ctags (#58435) 2023-11-20 19:01:34 +01:00
internal requestinteraction: add X-Sourcegraph-Interaction-ID propagation (#58016) 2023-11-22 20:09:39 +00:00
lib msp: provision and load EXTERNAL_DNS_NAME envvar (#58275) 2023-11-13 08:58:30 +00:00
migrations codeintel: Improve GetIndexers method (#56801) 2023-11-22 10:47:08 +00:00
monitoring monitoring: assign obvious owners to DatabaseConnectionsMonitoringGroup (#58474) 2023-11-22 01:06:53 +00:00
schema docs: Fix wrong example in site config (#58481) 2023-11-22 01:05:38 +00:00
src-tauri bzl: Bump Rust version (#58223) 2023-11-20 13:43:41 +01:00
testing bzl: do not mount data volumes for e2e tests (#58101) 2023-11-03 16:53:59 +02:00
third_party local: fix issues when cross-compiling syntax-highlighter to produce a container image on Mac machines (#55969) 2023-08-22 12:46:43 +02:00
third-party-licenses chore: update third-party licenses (#58423) 2023-11-20 14:00:42 +00:00
tools/release release: sourcegraph@5.2.3 (#58362) 2023-11-16 16:35:19 -05:00
ui/assets use esbuild for client/web builds (#57365) 2023-10-23 10:59:06 -07:00
windows/installer/cody call it "Cody" not "Cody AI" (#56863) 2023-09-21 08:49:02 -05:00
wolfi-images upgrade nodejs to 20.8 (#57910) 2023-10-26 22:25:24 -07:00
wolfi-packages Bump p4 cli version to 23.1 (#57832) 2023-11-15 01:55:23 +01:00
.bazel_fix_commands.json bazel: add command sets that uses bazel under the hood (#48460) 2023-03-02 11:31:51 +01:00
.bazelignore bazelignore storybook static files (#57501) 2023-10-10 09:00:30 +09:00
.bazeliskrc chore: upgrade to Aspect CLI 5.8.5 (#57961) 2023-10-30 17:01:58 +02:00
.bazelrc syntax-highlighter: add cargo clippy to bazel builds and fix warnings (#58096) 2023-11-07 11:54:03 +01:00
.bazelversion build: upgrade to Bazel 7 pre-release (#57970) 2023-10-31 15:29:14 +02:00
.dockerignore use esbuild for client/web builds (#57365) 2023-10-23 10:59:06 -07:00
.editorconfig proto: Add editorconfig to ident using two spaces (#57281) 2023-10-03 00:39:42 +00:00
.eslintrc.js remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
.gitattributes github: show bazel diff again (#54719) 2023-07-07 16:43:45 +00:00
.gitignore use esbuild for client/web builds (#57365) 2023-10-23 10:59:06 -07:00
.graphqlrc.yml
.hadolint.yaml bump comby version to 1.7.1 (#35830) 2022-05-20 20:12:01 -07:00
.mailmap mailmap: add entries for Eric and Renovate (#50966) 2023-04-25 09:42:22 +02:00
.mocharc.js reapply "switch from jest to vitest for faster, simpler tests (#57886)" (#58145) 2023-11-07 12:00:18 +02:00
.npmrc pnpm: remove update notifier message (#51630) 2023-05-10 08:53:39 +02:00
.percy.yml ci: percy defer snapshots upload (#54116) 2023-06-25 18:57:49 -07:00
.pre-commit-config.yaml local: don't let pre-commit run no DB md files (#58094) 2023-11-03 08:50:10 +00:00
.prettierignore prettier: add package to prettier ignore (#58118) 2023-11-06 12:48:44 +00:00
.stylelintignore rework plugin structure and implement frontside blogpost (#46883) 2023-02-15 11:49:51 +02:00
.stylelintrc.json web: drop bootstrap depenedency (#41401) 2022-09-07 03:11:26 -07:00
.swcrc use swc instead of babel for faster bazel typescript transpilation (#57912) 2023-11-02 22:49:03 -07:00
.tool-versions bzl: Bump Rust version (#58223) 2023-11-20 13:43:41 +01:00
.trivyignore
BUILD.bazel dev/sg: build sg-msp with bazel (#58276) 2023-11-16 07:58:45 -08:00
CHANGELOG.app.md update code references to "Sourcegraph App" -> "Cody App" (#56747) 2023-09-19 12:31:12 -10:00
CHANGELOG.md gomod: update changelog for Zoekt bump (#58448) 2023-11-21 08:58:18 -08:00
CODENOTIFY nix: update pnpm hash (#51512) 2023-05-05 12:51:59 +00:00
CONTRIBUTING.md docs: Fixed a couple links in contributor docs (#58364) 2023-11-16 09:59:34 +00:00
deps.bzl gomod: bump Zoekt for index concurrency change (#58477) 2023-11-21 13:04:25 -08:00
doc.go
eslint-relative-formatter.js bazel: implement custom ESLint Bazel rule (#52062) 2023-05-22 04:05:45 -07:00
flake.lock nix: upgrade node and pnpm (#58015) 2023-10-31 17:55:55 +02:00
flake.nix nix: upgrade node and pnpm (#58015) 2023-10-31 17:55:55 +02:00
gen.go chore: Update go-mockgen (#44305) 2022-11-11 19:24:00 +00:00
go.mod gomod: bump Zoekt for index concurrency change (#58477) 2023-11-21 13:04:25 -08:00
go.sum gomod: bump Zoekt for index concurrency change (#58477) 2023-11-21 13:04:25 -08:00
graphql-schema-linter.config.js
LICENSE relicense all paths other than MIT licensed code, client/cody*, jetbrains, VS code, and browser extension to enterprise (#53345) (#53345) 2023-06-13 10:28:11 -07:00
LICENSE.enterprise
linter_deps.bzl bzl: port go compiler directives linter from sg lint to nogo (#54485) 2023-06-30 14:31:15 +02:00
mockgen.temp.yaml repoupdater: Remove endpoints for external services (#57441) 2023-10-09 13:48:07 +00:00
mockgen.test.yaml lib/managedservicesplatform: init MSP runtime, add lib/background from internal/goroutine (#57651) 2023-10-28 03:08:12 +00:00
mockgen.yaml mocks: Reorganize mock definitions into multiple files (#36967) 2022-06-27 20:59:16 +00:00
nogo_config.json gitserver: Replace P4Exec endpoint with properly typed and individually tested RPC calls (#57247) 2023-10-09 15:06:49 +02:00
package.json code intel: Don't rely on URL polyfill to correctly parse git: URIs (#58258) 2023-11-17 19:32:46 +01:00
pnpm-lock.yaml code intel: Don't rely on URL polyfill to correctly parse git: URIs (#58258) 2023-11-17 19:32:46 +01:00
pnpm-workspace.yaml cody: development branch (#49761) 2023-03-23 20:41:11 +01:00
postcss.config.js
prettier.config.js clean up Cody CSS to increase shareability and improve display in web app (#50279) 2023-04-03 12:29:05 -07:00
README.md remove more remannts of OSS build (#58253) 2023-11-10 07:59:03 +00:00
renovate.json Require approval to run Renovate (#57608) 2023-10-18 20:36:53 +02:00
SECURITY.md
service-catalog.yaml lib/servicecatalog: init to distribute catalog (#46999) 2023-01-26 17:22:27 -08:00
sg.config.yaml sg: ease scip-ctags-dev installation (#58410) 2023-11-17 19:43:34 +01:00
shell.nix nix: add typescript language server (#58379) 2023-11-16 17:41:37 +02:00
sonar-project.properties Use Buildkite to run Sonarcloud (#54875) 2023-07-21 12:16:03 -04:00
stamp_tags.bzl Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
svgo.config.js
tsconfig.base.json web: fix pnpm-lock issue (#47478) 2023-02-09 22:04:31 -08:00
tsconfig.json Vscode extension: Delete vscode extension package (#58023) 2023-10-31 18:39:30 -03:00
vitest.shared.ts code intel: Don't rely on URL polyfill to correctly parse git: URIs (#58258) 2023-11-17 19:32:46 +01:00
vitest.workspace.ts vitest: Fix workspace config wrt client/web/ (#58397) 2023-11-17 08:22:46 +00:00
WORKSPACE bzl: Bump Rust version (#58223) 2023-11-20 13:43:41 +01:00

DocsContributingTwitterDiscord

Build status Scorecard Latest release Discord Contributors


Sourcegraph makes it easy to read, write, and fix code—even in big, complex codebases.

  • Code search: Search all of your repositories across all branches and all code hosts.
  • Code intelligence: Navigate code, find references, see code owners, trace history, and more.
  • Fix and refactor: Roll out large-scale changes to many repositories at once and track big migrations.

Getting started



Development

Refer to the Developing Sourcegraph guide to get started.

Documentation

The doc directory has additional documentation for developing and understanding Sourcegraph:

License

This repository contains primarily non-OSS-licensed files. See LICENSE.