Code AI platform with Code Search & Cody
Go to file
David Veszelovszki cd28a4cc2c
Log external requests (#44286)
* Added Redis access
* Added RedisLogItem with request+response info and stack traces
* Added RedisLoggerMiddleware, with sensitive header removal
* Added GraphQL API endpoint, for site admins only, matching the Cursor Connections spec
* Added admin UI with five-sec polling and "copy curl" feature
* Added back-end tests
* Added log limit setting with default=50, range: 0..500
* Added changelog item
* Deduplicated WebhookLogHeader with HTTPHeader
* Unrelated: Fixed two typos
* Use  for the API
* Made the CSS work well with both light and dark themes and made sure it's accessible. Tested with a screen reader.

Co-authored-by: Robert Lin <robert@bobheadxi.dev>
2022-11-29 12:08:54 +01:00
.buildkite observability: disable ci log upload and add disabled notice for log upload (#44271) 2022-11-11 11:38:06 +00:00
.github go: Use Go 1.19 (#44752) 2022-11-22 18:51:44 -06:00
.vscode chore: Run yarn format (#43031) 2022-10-17 08:30:32 +00:00
.yarn workflows: bump license_finder to v7.0.1 (#43787) 2022-11-03 11:27:06 +02:00
client Log external requests (#44286) 2022-11-29 12:08:54 +01:00
cmd Log external requests (#44286) 2022-11-29 12:08:54 +01:00
dev batches: add unique constraint {batch, changeset}_spec rand ids (#44601) 2022-11-28 20:15:34 +01:00
doc monitoring: zoekt - lower alert thresholds for memory map areas by 10% (#44376) 2022-11-28 18:27:34 +00:00
docker-images otel: update otel build config (#44781) 2022-11-24 11:39:54 +02:00
enterprise Support binary patches (#44779) 2022-11-29 03:22:01 +01:00
internal Log external requests (#44286) 2022-11-29 12:08:54 +01:00
lib Support binary patches (#44779) 2022-11-29 03:22:01 +01:00
migrations batches: add unique constraint {batch, changeset}_spec rand ids (#44601) 2022-11-28 20:15:34 +01:00
monitoring monitoring: zoekt - lower alert thresholds for memory map areas by 10% (#44376) 2022-11-28 18:27:34 +00:00
schema Log external requests (#44286) 2022-11-29 12:08:54 +01:00
third-party-licenses workflows: bump license_finder to v7.0.1 (#43787) 2022-11-03 11:27:06 +02:00
ui/assets Use CSS animation for SVG (#44516) 2022-11-16 12:06:29 -08:00
.browserslistrc Performance: Update browserslist and drop broken Safari 13 support (#39349) 2022-08-10 11:02:32 +01:00
.dockerignore symbols: Build in Docker (#34335) 2022-04-25 16:03:55 -06:00
.editorconfig chore: Add .lua to editorconfig. (#44267) 2022-11-11 15:25:32 +08:00
.eslintignore vscode: create integration test harness (#33921) 2022-04-22 09:54:35 -04:00
.eslintrc.js Restrict imports from any out/ directories (#41515) 2022-10-17 11:09:33 +02:00
.gitattributes chore: Fix pattern in .gitattributes to match mock files. (#44331) 2022-11-14 10:45:28 +08:00
.gitignore web: add Analyzing the Bundlesize check failure docs (#41164) 2022-09-01 04:47:57 -07:00
.golangci.yml go + golangci: update to go to 1.19.3 and golanci to 1.50.1 (#43747) 2022-11-02 15:08:25 +02:00
.graphqlrc.yml Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
.hadolint.yaml bump comby version to 1.7.1 (#35830) 2022-05-20 20:12:01 -07:00
.mailmap mailmap: update replacements for Joe (#29614) 2022-01-12 10:56:56 +08:00
.mocharc.js Revert "regression-tests: update custom mocha reporter to exit rather… (#41542) 2022-09-08 19:48:01 +00:00
.percy.yml Update browser extention installation detection logic on web (#32449) 2022-03-14 23:29:39 +06:00
.prettierignore web: link to codehost when file is an LFS Pointer (#43686) 2022-11-10 18:30:48 +00:00
.stylelintignore web: named Webpack chunks (#39481) 2022-07-28 20:22:05 -07:00
.stylelintrc.json web: drop bootstrap depenedency (#41401) 2022-09-07 03:11:26 -07:00
.tool-versions workflows: bump license_finder to v7.0.1 (#43787) 2022-11-03 11:27:06 +02:00
.trivyignore ci: ignore benign CVE-2021-43816 in prometheus (#31069) 2022-02-11 16:49:10 +00:00
.yarnrc.yml workflows: bump license_finder to v7.0.1 (#43787) 2022-11-03 11:27:06 +02:00
babel.config.js Remove d3 ignore (#40048) 2022-08-07 08:37:21 -05:00
CHANGELOG.md Log external requests (#44286) 2022-11-29 12:08:54 +01:00
CODENOTIFY api docs: bye (#34798) 2022-05-18 01:03:03 +00:00
CONTRIBUTING.md update broken links (#39673) 2022-07-29 09:05:41 -06:00
doc.go
flake.lock nix: migrate to Nix Flakes (#43668) 2022-10-31 15:08:06 +00:00
flake.nix nix: add p4-fusion building (#44588) 2022-11-23 16:06:28 +00:00
gen.go chore: Update go-mockgen (#44305) 2022-11-11 19:24:00 +00:00
go.mod chore: Update sg/scip dependency (#44851) 2022-11-28 16:39:59 +00:00
go.sum chore: Run go mod tidy (#44857) 2022-11-28 18:11:07 +00:00
graphql-schema-linter.config.js Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
gulpfile.js web: lint root *.js files (#34164) 2022-04-20 05:22:08 -07:00
jest.config.base.js Remove reactstrap (#41868) 2022-09-21 22:23:38 +03:00
jest.config.js tests: use glob for jest projects field (#29681) 2022-01-13 01:11:52 -08:00
LICENSE update licensing language (#25620) 2021-10-04 15:40:59 +01:00
LICENSE.apache Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
LICENSE.enterprise
lighthouserc.js Lighthouse: Fix protocol_timeout (#27565) 2021-12-10 15:56:16 +00:00
mockgen.temp.yaml debt: Remove code related to user public repos (#44793) 2022-11-25 10:17:39 +01:00
mockgen.test.yaml codeintel: Clean up autoindexing package (#44312) 2022-11-15 22:32:26 -07:00
mockgen.yaml mocks: Reorganize mock definitions into multiple files (#36967) 2022-06-27 20:59:16 +00:00
package.json Upgrade TypeScript to the 4.9.3 (#44638) 2022-11-21 16:17:58 -03:00
postcss.config.js extensibility: add featured extensions to registry (#21665) 2021-06-10 13:55:20 -04:00
prettier.config.js
README.md docs/update add GCE custom image deployment type (#42911) 2022-10-21 10:23:57 -07:00
renovate.json chore: add test plans to bot and release tool PRs (#31351) 2022-02-22 07:53:25 -08:00
SECURITY.md
sg.config.yaml Experiment: Natively run SSBC in docker (#44034) 2022-11-10 00:20:43 +01:00
shell.nix nix: migrate to Nix Flakes (#43668) 2022-10-31 15:08:06 +00:00
svgo.config.js Performance: Optimize static SVG assets with SVGO (#26285) 2021-10-27 15:27:36 +01:00
tsconfig.all.json web: create the observability-client package (#40398) 2022-08-17 01:57:00 -07:00
tsconfig.eslint.json web: lint root *.js files (#34164) 2022-04-20 05:22:08 -07:00
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
yarn.lock Upgrade TypeScript to the 4.9.3 (#44638) 2022-11-21 16:17:58 -03:00

Sourcegraph 4.0

DocsContributingTwitter

Build status Scorecard Latest release Discord Contributors


Understand, fix, and automate across your codebase with Sourcegraph's code intelligence platform

 


4.0 Features

  • Understand usage and search structure with high-level aggregations of search results
  • A faster, simpler search experience
  • Configure precise code navigation for 9 languages (Ruby, Rust, Go, Java, Scala, Kotlin, Python, TypeScript, JavaScript) in a matter of minutes with auto-indexing
  • Your favorite extensions are now available by default
  • Quickly access answers within your codebase with a revamped reference panel

🏗️ High-leverage ways to improve your entire codebase

  • Make changes across all of your codebase at enterprise scale with server-side Batch Changes (beta)
    • Run large-scale or resource-intensive batch changes without clogging your local machine
    • Run large batch changes quickly by distributing them across an autoscaled pool of compute instances
    • Get a better debugging experience with the streaming of logs directly into Sourcegraph.

☁️ Dedicated Sourcegraph Cloud instances for enterprise

  • Sourcegraph Cloud now offers dedicated, single-tenant instances of Sourcegraph

📈 Advanced admin capabilities

  • Save time upgrading to Sourcegraph 4.0 with multi-version upgrades
  • View usage and measure the value of our platform with new and enhanced in-product analytics
  • Uncover developer time saved using Browser and IDE extensions
  • Easily export traces using OpenTelemetry
  • Quickly see the status on your repository and permissions syncing
  • Measure precise code navigation coverage with an enhanced analytics dashboard

Deploy Sourcegraph

Self-hosted

Local machine

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 both OSS-licensed and non-OSS-licensed files. We maintain one repository rather than two separate repositories mainly for development convenience.

All files in the enterprise and client/web/src/enterprise fall under LICENSE.enterprise.

The remaining files fall under the Apache 2 license. Sourcegraph OSS is built only from the Apache-licensed files in this repository.