Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/refactor #10

Merged
merged 23 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
87ae774
feat: refactor and add configurable queries
sdewitt-newrelic Jun 15, 2024
01a1c25
chore: switch configs to .yml and update mod name in go.mod
sdewitt-newrelic Jun 15, 2024
156c3b7
chore: switch to official sdk repo and update integration vars
sdewitt-newrelic Jun 15, 2024
1c88849
build(workflow): add gh workflows
sdewitt-newrelic Jun 15, 2024
79ab59b
build(workflow): add goreleaser yml
sdewitt-newrelic Jun 15, 2024
fefc56d
feat: added dockerfiles and updated goreleaser to build docker images
sdewitt-newrelic Jun 17, 2024
7990b14
fix: change release job id
sdewitt-newrelic Jun 17, 2024
b9fc3ce
build(deps): upgrade to sdk 1.2.0 and update goreleaser docker build
sdewitt-newrelic Jun 19, 2024
73db1ed
build: add docker login action to release workflow
sdewitt-newrelic Jun 19, 2024
05b0292
build: include bin directory in .gitignore
sdewitt-newrelic Jun 20, 2024
4a10687
feat: add and test lambda support
sdewitt-newrelic Jun 21, 2024
cca5314
build: add go mod tidy to makefile and switch exportWorkers to instan…
sdewitt-newrelic Jun 22, 2024
0771f51
docs: update README.md and update docker support
sdewitt-newrelic Jun 29, 2024
f9b853b
feat: upgrade to sdk 1.3.0 and change harvest interval and buffer siz…
sdewitt-newrelic Jul 3, 2024
6f650e5
fix: switch to NewLambdaIntegration to avoid flag redefined error
sdewitt-newrelic Jul 12, 2024
61c8619
docs: change operation to operator and other minor corrections
sdewitt-newrelic Aug 26, 2024
8c12fb5
feat: bump newrelic-labs-sdk to 1.5.0
sdewitt-newrelic Aug 26, 2024
92f2698
chore: cleanup custom config sample and rename
sdewitt-newrelic Aug 26, 2024
84f3610
fix: stop skipping valid non-string dimensions
sdewitt-newrelic Aug 26, 2024
28630f9
feat: support nil group values in bitmovin api response
sdewitt-newrelic Oct 22, 2024
5fe1260
feat!: changed nil group parameter name to null value, added doc, and…
sdewitt-newrelic Oct 22, 2024
942c1c3
build: update goreleaser to produce docker binary
sdewitt-newrelic Oct 22, 2024
848fb82
chore: remove shebang from init.sh and update lambda docs with config…
sdewitt-newrelic Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_size = 4
indent_style = tab
trim_trailing_whitespace = true
max_line_length = 80

[*.md]
max_line_length = 0
trim_trailing_whitespace = false
208 changes: 208 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
# Source: https://github.com/alexkaratarakis/gitattributes/blob/master/Web.gitattributes

## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
#
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF to LF).
# binary These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################

# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto

# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.json text
*.jsx text
*.less text
*.ls text
*.map text -diff
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text diff=css
*.sh text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.xml text
*.xhtml text diff=html

# Docker
Dockerfile text

# Documentation
*.ipynb text
*.markdown text diff=markdown
*.md text diff=markdown
*.mdwn text diff=markdown
*.mdown text diff=markdown
*.mkd text diff=markdown
*.mkdn text diff=markdown
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

# Templates
*.dot text
*.ejs text
*.erb text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.svelte text
*.tmpl text
*.tpl text
*.twig text
*.vue text

# Configs
*.cnf text
*.conf text
*.config text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text -diff
package.json text eol=lf
package-lock.json text -diff
pnpm-lock.yaml text eol=lf -diff
.prettierrc text
yarn.lock text -diff
*.toml text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text

# Heroku
Procfile text

# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.gifv binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.avi binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary

# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

# Executables
*.exe binary
*.pyc binary

# RC files (like .babelrc or .eslintrc)
*.*rc text

# Ignore files (like .npmignore or .gitignore)
*.*ignore text
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Describe a scenario in which this project behaves unexpectedly
title: ''
labels: bug, needs-triage
assignees: ''

---

[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )

## Description

[NOTE]: # ( Describe the problem you're encountering. )
[TIP]: # ( Do NOT give us access or passwords to your New Relic account or API keys! )

## Steps to Reproduce

[NOTE]: # ( Please be as specific as possible. )

## Expected Behavior

[NOTE]: # ( Tell us what you expected to happen. )

## Relevant Logs / Console output

[NOTE]: # ( Please provide specifics of the local error logs, Browser Dev Tools console, etc. if appropriate and possible. )

## Your Environment

[TIP]: # ( Include as many relevant details about your environment as possible. )

* ex: Browser name and version:
* ex: Operating System and version:

## Additional context

[TIP]: # ( Add any other context about the problem here. )
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

### Feature Description
A clear and concise description of the feature you want or need.

### Describe Alternatives
A clear and concise description of any alternative solutions or features you've considered. Are there examples you could link us to?

### Additional context
Add any other context here.
28 changes: 28 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Description

Please include a summary of the changes and the related issue.

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

- [ ] Test A
- [ ] Test B

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Build & Test

on: [push, pull_request]

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
check-latest: true

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This workflow will release a golang project using goreleaser

name: Release

permissions: write-all

on:
push:
branches: [ "main" ]

jobs:

release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
check-latest: true

- name: Set up svu
uses: obfu5c8/action-svu@v1
id: install_svu
with:
type: none

- name: Tag latest commit
id: tag-commit
run: |
CURR=$(svu c)
NEXT=$(svu)
if [[ "$NEXT" != "$CURR" ]]; then
git tag $NEXT
echo "next-version=$NEXT" >> "$GITHUB_OUTPUT"
else
echo "next-version=" >> "$GITHUB_OUTPUT"
fi

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
if: steps.tag-commit.outputs.next-version != ''
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading