Skip to content

Commit

Permalink
ref: Rename example/ directory to _examples/ (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyo committed Jan 9, 2023
1 parent 6588be3 commit e081f7e
Show file tree
Hide file tree
Showing 29 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -99,7 +99,7 @@ jobs:
run: |
# Iris requires Module mode, therefore we delete the relevant code to
# skip testing it in GOPATH mode.
rm -vrf ./iris/ ./example/iris/
rm -vrf ./iris/ ./_examples/iris/
- name: Download Dependencies
run: go get -d -t -v ./...
- name: Build
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
Expand Up @@ -18,10 +18,10 @@ Due to ongoing work towards a stable API for `v1.0.0`, we sadly had to include *
```
- Unify TracesSampler [#498](https://github.com/getsentry/sentry-go/pull/498)
- `TracesSampler` was changed to a callback that must return a `float64` between `0.0` and `1.0`.

For example, you can apply a sample rate of `1.0` (100%) to all `/api` transactions, and a sample rate of `0.5` (50%) to all other transactions.
You can read more about this in our [SDK docs](https://docs.sentry.io/platforms/go/configuration/filtering/#using-sampling-to-filter-transaction-events).

```go
sentry.Init(sentry.ClientOptions{
TracesSampler: sentry.TracesSampler(func(ctx sentry.SamplingContext) float64 {
Expand All @@ -40,7 +40,7 @@ Due to ongoing work towards a stable API for `v1.0.0`, we sadly had to include *
### Features

- Send errors logged with [Logrus](https://github.com/sirupsen/logrus) to Sentry.
- Have a look at our [logrus examples](https://github.com/getsentry/sentry-go/blob/master/example/logrus/main.go) on how to use the integration.
- Have a look at our [logrus examples](https://github.com/getsentry/sentry-go/blob/master/_examples/logrus/main.go) on how to use the integration.
- Add support for Dynamic Sampling [#491](https://github.com/getsentry/sentry-go/pull/491)
- You can read more about Dynamic Sampling in our [product docs](https://docs.sentry.io/product/data-management-settings/dynamic-sampling/).
- Add detailed logging about the reason transactions are being dropped.
Expand Down Expand Up @@ -128,7 +128,7 @@ There are no breaking changes and upgrading should be a smooth experience for al
_NOTE:_
This version introduces support for [Sentry's Performance Monitoring](https://docs.sentry.io/platforms/go/performance/).
The new tracing capabilities are beta, and we plan to expand them on future versions. Feedback is welcome, please open new issues on GitHub.
The `sentryhttp` package got better API docs, an [updated usage example](https://github.com/getsentry/sentry-go/tree/master/example/http) and support for creating automatic transactions as part of Performance Monitoring.
The `sentryhttp` package got better API docs, an [updated usage example](https://github.com/getsentry/sentry-go/tree/master/_examples/http) and support for creating automatic transactions as part of Performance Monitoring.

## v0.8.0

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc.go
Expand Up @@ -18,7 +18,7 @@ Sentry project. This step is accomplished through a call to sentry.Init.
}
A more detailed yet simple example is available at
https://github.com/getsentry/sentry-go/blob/master/example/basic/main.go.
https://github.com/getsentry/sentry-go/blob/master/_examples/basic/main.go.
# Error Reporting
Expand Down
2 changes: 1 addition & 1 deletion echo/README.md
Expand Up @@ -9,7 +9,7 @@

**Godoc:** https://godoc.org/github.com/getsentry/sentry-go/echo

**Example:** https://github.com/getsentry/sentry-go/tree/master/example/echo
**Example:** https://github.com/getsentry/sentry-go/tree/master/_examples/echo

## Installation

Expand Down
2 changes: 1 addition & 1 deletion fasthttp/README.md
Expand Up @@ -9,7 +9,7 @@

**Godoc:** https://godoc.org/github.com/getsentry/sentry-go/fasthttp

**Example:** https://github.com/getsentry/sentry-go/tree/master/example/fasthttp
**Example:** https://github.com/getsentry/sentry-go/tree/master/_examples/fasthttp

## Installation

Expand Down
2 changes: 1 addition & 1 deletion gin/README.md
Expand Up @@ -9,7 +9,7 @@

**Godoc:** https://godoc.org/github.com/getsentry/sentry-go/gin

**Example:** https://github.com/getsentry/sentry-go/tree/master/example/gin
**Example:** https://github.com/getsentry/sentry-go/tree/master/_examples/gin

## Installation

Expand Down
1 change: 0 additions & 1 deletion go.mod
Expand Up @@ -34,7 +34,6 @@ require (
github.com/go-playground/universal-translator v0.18.0 // indirect
github.com/go-playground/validator/v10 v10.11.1 // indirect
github.com/goccy/go-json v0.9.11 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Expand Up @@ -46,8 +46,6 @@ github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJ
github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU=
github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk=
github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
Expand Down
2 changes: 1 addition & 1 deletion http/README.md
Expand Up @@ -9,7 +9,7 @@

**Godoc:** https://godoc.org/github.com/getsentry/sentry-go/http

**Example:** https://github.com/getsentry/sentry-go/tree/master/example/http
**Example:** https://github.com/getsentry/sentry-go/tree/master/_examples/http

## Installation

Expand Down
2 changes: 1 addition & 1 deletion http/example_test.go
Expand Up @@ -8,7 +8,7 @@ import (
)

// For a longer and executable example, see
// https://github.com/getsentry/sentry-go/tree/master/example/http.
// https://github.com/getsentry/sentry-go/tree/master/_examples/http.
func Example() {
// Initialize the Sentry SDK once in the main function.
// sentry.Init(...)
Expand Down
2 changes: 1 addition & 1 deletion iris/README.md
Expand Up @@ -9,7 +9,7 @@

**Godoc:** https://godoc.org/github.com/getsentry/sentry-go/iris

**Example:** https://github.com/getsentry/sentry-go/tree/master/example/iris
**Example:** https://github.com/getsentry/sentry-go/tree/master/_examples/iris

## Installation

Expand Down
2 changes: 1 addition & 1 deletion martini/README.md
Expand Up @@ -9,7 +9,7 @@

**Godoc:** https://godoc.org/github.com/getsentry/sentry-go/martini

**Example:** https://github.com/getsentry/sentry-go/tree/master/example/martini
**Example:** https://github.com/getsentry/sentry-go/tree/master/_examples/martini

## Installation

Expand Down
2 changes: 1 addition & 1 deletion negroni/README.md
Expand Up @@ -9,7 +9,7 @@

**Godoc:** https://godoc.org/github.com/getsentry/sentry-go/negroni

**Example:** https://github.com/getsentry/sentry-go/tree/master/example/negroni
**Example:** https://github.com/getsentry/sentry-go/tree/master/_examples/negroni

## Installation

Expand Down

0 comments on commit e081f7e

Please sign in to comment.