Skip to content

Commit

Permalink
Merge pull request #451 from LerianStudio/fix/MIDAZ-448
Browse files Browse the repository at this point in the history
fix: check context if is diff nil 🐛
  • Loading branch information
MartinezAvellan authored Jan 8, 2025
2 parents 13f8f6a + eefa57a commit 488a50a
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version = 'v1.43.0'
$version = 'v1.44.0'

$ErrorActionPreference = 'Stop';

Expand Down
2 changes: 1 addition & 1 deletion components/audit/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ENV_NAME=production

# APP
VERSION=v1.43.0
VERSION=v1.44.0
SERVER_PORT=3005
SERVER_ADDRESS=:${SERVER_PORT}

Expand Down
4 changes: 2 additions & 2 deletions components/auth/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
midaz-casdoor:
container_name: midaz-casdoor
image: casbin/casdoor:latest
image: casbin/casdoor:v1.787.0
restart: always
env_file:
- .env
Expand Down Expand Up @@ -42,4 +42,4 @@ services:
networks:
auth_network:
name: auth_network
driver: bridge
driver: bridge
2 changes: 1 addition & 1 deletion components/ledger/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ENV_NAME=production

# APP
VERSION=v1.43.0
VERSION=v1.44.0
SERVER_PORT=3000
SERVER_ADDRESS=:${SERVER_PORT}

Expand Down
2 changes: 1 addition & 1 deletion components/mdz/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ CLIENT_ID=9670e0ca55a29a466d31
CLIENT_SECRET=dd03f916cacf4a98c6a413d9c38ba102dce436a9
URL_API_AUTH=http://127.0.0.1:8080
URL_API_LEDGER=http://127.0.0.1:3000
VERSION=v1.43.0
VERSION=v1.44.0
2 changes: 1 addition & 1 deletion components/transaction/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ENV_NAME=production

# APP
VERSION=v1.43.0
VERSION=v1.44.0
APP_CONTEXT=/transaction/v1
SERVER_PORT=3002
SERVER_ADDRESS=:${SERVER_PORT}
Expand Down
7 changes: 6 additions & 1 deletion pkg/net/http/withTelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ func (tm *TelemetryMiddleware) WithTelemetry(tl *mopentelemetry.Telemetry) fiber

// EndTracingSpans is a middleware that ends the tracing spans.
func (tm *TelemetryMiddleware) EndTracingSpans(c *fiber.Ctx) error {
ctx := c.UserContext()
if ctx == nil {
return nil
}

err := c.Next()

go func() {
trace.SpanFromContext(c.UserContext()).End()
trace.SpanFromContext(ctx).End()
}()

return err
Expand Down

0 comments on commit 488a50a

Please sign in to comment.