Skip to content

Commit

Permalink
add sentry release support
Browse files Browse the repository at this point in the history
  • Loading branch information
mylokin committed Dec 14, 2021
1 parent 129e6e3 commit 826c308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ run:
docker-component: check-component
GOOS=linux GOARCH=amd64 $(MAKE) $(COMPONENT)
cp ./bin/$(COMPONENT)_linux_amd64 ./cmd/$(COMPONENT)/$(COMPONENT)
docker build -t $(COMPONENT) ./cmd/$(COMPONENT)/
docker build --platform=linux/amd64 -t $(COMPONENT) ./cmd/$(COMPONENT)/
rm ./cmd/$(COMPONENT)/$(COMPONENT)

.PHONY: check-component
Expand Down
3 changes: 3 additions & 0 deletions exporter/sentryexporter/sentry_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ func transactionFromSpan(span *sentry.Span) *sentry.Event {
transaction := sentry.NewEvent()
transaction.EventID = generateEventID()

transaction.Environment = span.Tags["environment"]
transaction.Release = span.Tags["release"]

transaction.Contexts["trace"] = sentry.TraceContext{
TraceID: span.TraceID,
SpanID: span.SpanID,
Expand Down

0 comments on commit 826c308

Please sign in to comment.