---
title: "Transports"
description: "Transports let you change the way in which events are delivered to Sentry."
url: https://docs.sentry.io/platforms/go/guides/echo/configuration/transports/
---

# Transports | Sentry for Echo

Transports let you change the way in which events are delivered to Sentry.

The Sentry Go SDK itself, provides two built-in transports. `HTTPTransport`, which is non-blocking and is used by default. And `HTTPSyncTransport` which is blocking. Each transport, provide slightly different configuration options.

## [Usage](https://docs.sentry.io/platforms/go/guides/echo/configuration/transports.md#usage)

To configure transport, provide an instance of `sentry.Transport` interface to `ClientOptions`

```go
sentrySyncTransport := sentry.NewHTTPSyncTransport()
sentrySyncTransport.Timeout = time.Second * 3

sentry.Init(sentry.ClientOptions{
    Dsn: "___PUBLIC_DSN___",
    Transport: sentrySyncTransport,
})
```

Each transport, provide it's own factory function. `NewHTTPTransport` and `NewHTTPSyncTransport` respectively.

## [Options](https://docs.sentry.io/platforms/go/guides/echo/configuration/transports.md#options)

## [HTTPTransport](https://docs.sentry.io/platforms/go/guides/echo/configuration/transports.md#httptransport)

```go
// HTTPTransport is a default implementation of `Transport` interface used by `Client`.
type HTTPTransport struct {
	// Size of the transport buffer. Defaults to 30.
	BufferSize int
	// HTTP Client request timeout. Defaults to 30 seconds.
	Timeout time.Duration
}
```

## [HTTPSyncTransport](https://docs.sentry.io/platforms/go/guides/echo/configuration/transports.md#httpsynctransport)

```go
// HTTPSyncTransport is an implementation of `Transport` interface which blocks after each captured event.
type HTTPSyncTransport struct {
	// HTTP Client request timeout. Defaults to 30 seconds.
	Timeout time.Duration
}
```
