---
title: "Legacy SDK"
url: https://docs.sentry.io/platforms/go/legacy-sdk/
---

# Legacy SDK | Sentry for Go

##### Deprecation Warning

A [new Go SDK](https://docs.sentry.io/platforms/go.md) has superseded this deprecated version. Sentry preserves this documentation for customers using the old `raven-go` client. Learn more about the project on [GitHub](https://github.com/getsentry/sentry-go) and check out our [migration guide](https://docs.sentry.io/platforms/go/migration.md).

Raven-Go provides a Sentry client implementation for the Go programming language.

## [Getting Started](https://docs.sentry.io/platforms/go/legacy-sdk.md#getting-started)

Getting started with Sentry is a three step process:

1. [Sign up for an account](https://sentry.io/signup/)
2. [Install your SDK](https://docs.sentry.io/platforms/go/legacy-sdk.md#install)
3. [Configure it](https://docs.sentry.io/platforms/go/legacy-sdk.md#configure)

## [Installation](https://docs.sentry.io/platforms/go/legacy-sdk.md#installation)

Raven-Go can be installed like any other Go library through `go get`:

```bash
go get github.com/getsentry/raven-go
```

## [Configuration](https://docs.sentry.io/platforms/go/legacy-sdk.md#configuration)

To use `raven-go`, you’ll need to import the `raven` package, then initialize your DSN globally. If you specify the `SENTRY_DSN` environment variable, this will be done automatically for you. The release and environment can also be specified in the environment variables `SENTRY_RELEASE` and `SENTRY_ENVIRONMENT` respectively. More on this in [Configuration](https://docs.sentry.io/platforms/go/legacy-sdk/config.md) section.

```go
package main

import "github.com/getsentry/raven-go"

func init() {
	raven.SetDSN("___PUBLIC_DSN___")
}
```

## [Next Steps](https://docs.sentry.io/platforms/go/legacy-sdk.md#next-steps)

For more detailed information about how to get the most out of `raven-go` there is additional documentation available that covers all the rest:

* [Configuration](https://docs.sentry.io/platforms/go/legacy-sdk/config.md)
* [Usage](https://docs.sentry.io/platforms/go/legacy-sdk/usage.md)
* [Context](https://docs.sentry.io/platforms/go/legacy-sdk/context.md)
* [Integrations](https://docs.sentry.io/platforms/go/legacy-sdk/integrations.md)
  * [net/http](https://docs.sentry.io/platforms/go/legacy-sdk/integrations.md)

Resources:

* [Bug Tracker](https://github.com/getsentry/raven-go/issues)
* [GitHub Project](https://github.com/getsentry/raven-go)
* [Go Devs](https://pkg.go.dev/github.com/getsentry/raven-go)

## Pages in this section

- [Configuration](https://docs.sentry.io/platforms/go/legacy-sdk/config.md)
- [Usage](https://docs.sentry.io/platforms/go/legacy-sdk/usage.md)
- [Context](https://docs.sentry.io/platforms/go/legacy-sdk/context.md)
- [Integrations](https://docs.sentry.io/platforms/go/legacy-sdk/integrations.md)
