Skip to content

Commit

Permalink
Merge branch 'v1' into francois.mazeau/libddwaf-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellzy committed Apr 5, 2022
2 parents 69a1bbb + c7d20d9 commit 94f03f7
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 1,901 deletions.
10 changes: 9 additions & 1 deletion contrib/gin-gonic/gin/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import (

// To start tracing requests, add the trace middleware to your Gin router.
func Example() {
tracer.Start()
defer tracer.Stop()

// Create a gin.Engine
r := gin.New()

Expand All @@ -30,6 +33,9 @@ func Example() {
}

func ExampleHTML() {
tracer.Start()
defer tracer.Stop()

r := gin.Default()
r.Use(gintrace.Middleware("my-web-app"))
r.LoadHTMLGlob("templates/*")
Expand All @@ -43,6 +49,9 @@ func ExampleHTML() {
}

func Example_spanFromContext() {
tracer.Start()
defer tracer.Stop()

r := gin.Default()
r.Use(gintrace.Middleware("image-encoder"))
r.GET("/image/encode", func(c *gin.Context) {
Expand All @@ -54,5 +63,4 @@ func Example_spanFromContext() {

c.String(200, "ok!")
})

}
32 changes: 0 additions & 32 deletions contrib/go-chi/chi.v4/appsec.go

This file was deleted.

90 changes: 0 additions & 90 deletions contrib/go-chi/chi.v4/chi.go

This file was deleted.

Loading

0 comments on commit 94f03f7

Please sign in to comment.