Skip to content

Conversation

@maxday
Copy link
Contributor

@maxday maxday commented Jun 16, 2021

  • rewrite the recorder extension in Go so it can be executed in both node and python runtimes (more coming ?)
  • add python support
  • add DD_SERVICE tests

@maxday maxday requested a review from a team as a code owner June 16, 2021 12:38
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Todo : retrieve this layer version automatically from AWS
NODE_LAYER_VERSION: 55
PYTHON_LAYER_VERSION: 41
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still have a plan to automatically retrieve this from AWS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

)

var (
extensionName = "recorder-extension" // extension name has to match the filename
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Any reason this is a var and not a const?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not at all !

return &res, nil
}

// Start begins running the sidecar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "the sidecar" here?

fmt.Printf("Error while JSON encoding the Log")
}
stringJsonLog := string(jsonLog)
// if we log an unwanted log, it will be availble in the next log api payload -> infinite loop
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: availble -> available

http.HandleFunc("/api/v1/check_run", func(w http.ResponseWriter, r *http.Request) {
})

// port 8080 is used by the Lambda Invoke API
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this comment to where you specify the port as 3333.

Copy link
Contributor

@nhinsch nhinsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just left a few comments.

@maxday maxday merged commit 63ab3a9 into main Jun 22, 2021
@maxday maxday deleted the maxday/add-python-support branch June 22, 2021 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants