Skip to content

Commit

Permalink
Merge pull request #37 from honeycombio/ssharma-add-marker-url
Browse files Browse the repository at this point in the history
add a url to the marker and sort imports
  • Loading branch information
puckpuck committed Feb 16, 2022
2 parents c84203f + fec2b0b commit e55b2aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frontend/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package main
import (
"bytes"
"context"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"io"
"net/http"
"sync"
"time"

"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)

type CacheTracker struct {
Expand Down Expand Up @@ -87,7 +88,7 @@ func (c *CacheTracker) createMarker() {
c.log.Debug("Creating Honeycomb marker...")

url := "https://api.honeycomb.io/1/markers/" + c.honeycombDataset
payload := []byte(`{"message":"Deploy C34E68A7","type":"deploy"}`)
payload := []byte(`{"message":"Deploy C34E68A7", "url":"https://github.com/honeycombio/microservices-demo/commit/36bbbc36afebf145a992a7446554fb5371be149f", "type":"deploy"}`)
req, err := http.NewRequest(http.MethodPost, url, bytes.NewBuffer(payload))
if err != nil {
c.log.Error(errors.Wrap(err, "could not create request to generate marker"))
Expand Down

0 comments on commit e55b2aa

Please sign in to comment.