Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Rename example/ directory to _examples/ #521

Merged
merged 4 commits into from Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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