{"id":35790294,"url":"https://github.com/newrelic/newrelic-client-go","last_synced_at":"2026-02-19T10:07:55.114Z","repository":{"id":36800810,"uuid":"225491849","full_name":"newrelic/newrelic-client-go","owner":"newrelic","description":"New Relic Client for the Go programming language","archived":false,"fork":false,"pushed_at":"2026-02-15T19:13:47.000Z","size":11185,"stargazers_count":79,"open_issues_count":52,"forks_count":111,"subscribers_count":18,"default_branch":"main","last_synced_at":"2026-02-16T01:00:47.782Z","etag":null,"topics":["developer-toolkit","developer-tools","golang","hacktoberfest","newrelic","observability","observability-as-code"],"latest_commit_sha":null,"homepage":"https://newrelic.github.io/observability-as-code","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/newrelic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":"cla.md"}},"created_at":"2019-12-02T23:59:33.000Z","updated_at":"2026-02-02T11:23:50.000Z","dependencies_parsed_at":"2023-09-26T01:15:12.118Z","dependency_job_id":"203713b5-5203-427e-b999-435109e4b227","html_url":"https://github.com/newrelic/newrelic-client-go","commit_stats":{"total_commits":1599,"total_committers":77,"mean_commits":"20.766233766233768","dds":0.7998749218261414,"last_synced_commit":"a955753782bfbac74447f7d0542ff065fca78eba"},"previous_names":[],"tags_count":314,"template":false,"template_full_name":null,"purl":"pkg:github/newrelic/newrelic-client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic%2Fnewrelic-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic%2Fnewrelic-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic%2Fnewrelic-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic%2Fnewrelic-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newrelic","download_url":"https://codeload.github.com/newrelic/newrelic-client-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newrelic%2Fnewrelic-client-go/sbom","scorecard":{"id":681943,"data":{"date":"2025-08-11","repo":{"name":"github.com/newrelic/newrelic-client-go","commit":"26bca06018c0d4227125fc9c36d26068cc6b1e7f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.2,"checks":[{"name":"Maintained","score":10,"reason":"23 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Code-Review","score":5,"reason":"Found 15/29 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/compile.yml:1","Warn: no topLevel permission defined: .github/workflows/generate.yml:1","Warn: no topLevel permission defined: .github/workflows/graphql-schema.yml:1","Warn: topLevel permissions set to 'write-all': .github/workflows/release.yml:9"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/codeql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/codeql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/codeql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/compile.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/compile.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/compile.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/compile.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/generate.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/generate.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/generate.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/generate.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/generate.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/generate.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/generate.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/generate.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:147: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/graphql-schema.yml:161: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/graphql-schema.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:117: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pr_conventional_commits.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test_pr_conventional_commits.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pr_conventional_commits.yml:107: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test_pr_conventional_commits.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_pull_request_title.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test_pull_request_title.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test_pull_request_title.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/newrelic/newrelic-client-go/test_pull_request_title.yaml/main?enable=pin","Warn: goCommand not pinned by hash: scripts/release.sh:10","Warn: goCommand not pinned by hash: scripts/release.sh:11","Warn: goCommand not pinned by hash: scripts/release.sh:12","Warn: goCommand not pinned by hash: scripts/release.sh:13","Warn: goCommand not pinned by hash: scripts/release.sh:14","Warn: goCommand not pinned by hash: .github/workflows/generate.yml:47","Warn: npmCommand not pinned by hash: .github/workflows/graphql-schema.yml:34","Warn: goCommand not pinned by hash: .github/workflows/graphql-schema.yml:56","Info:   0 out of  27 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned","Info:   0 out of   7 goCommand dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/newrelic/.github/SECURITY.md:1","Info: Found linked content: github.com/newrelic/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/newrelic/.github/SECURITY.md:1","Info: Found text in security policy: github.com/newrelic/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (16) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2025-3829 / GHSA-4vq8-7jfc-9cvp","Warn: Project is vulnerable to: GO-2025-3787 / GHSA-fv92-fjc5-jj9h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T23:28:31.886Z","repository_id":36800810,"created_at":"2025-08-21T23:28:31.886Z","updated_at":"2025-08-21T23:28:31.886Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-toolkit","developer-tools","golang","hacktoberfest","newrelic","observability","observability-as-code"],"created_at":"2026-01-07T08:07:33.034Z","updated_at":"2026-02-19T10:07:55.091Z","avatar_url":"https://github.com/newrelic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Community Project header](https://github.com/newrelic/open-source-office/raw/master/examples/categories/images/Community_Project.png)](https://github.com/newrelic/open-source-office/blob/master/examples/categories/index.md#category-community-project)\n\n# newrelic-client-go\n\n[![Testing](https://github.com/newrelic/newrelic-client-go/workflows/Testing/badge.svg)](https://github.com/newrelic/newrelic-client-go/actions)\n[![Security Scan](https://github.com/newrelic/newrelic-client-go/workflows/Security%20Scan/badge.svg)](https://github.com/newrelic/newrelic-client-go/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/newrelic/newrelic-client-go?style=flat-square)](https://goreportcard.com/report/github.com/newrelic/newrelic-client-go)\n[![GoDoc](https://godoc.org/github.com/newrelic/newrelic-client-go?status.svg)](https://godoc.org/github.com/newrelic/newrelic-client-go)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/newrelic/newrelic-client-go/blob/main/LICENSE)\n[![CLA assistant](https://cla-assistant.io/readme/badge/newrelic/newrelic-client-go)](https://cla-assistant.io/newrelic/newrelic-client-go)\n[![Release](https://img.shields.io/github/release/newrelic/newrelic-client-go/all.svg)](https://github.com/newrelic/newrelic-client-go/releases/latest)\n\nThe New Relic Client provides the building blocks for tools in the [Developer Toolkit](https://newrelic.github.io/observability-as-code), enabling quick access to the suite of New Relic APIs. As a library, it can also be leveraged within your own custom applications.\n\n- [Getting Started and Example Usage](#getting-started-and-example-usage)\n- [Upgrade to the latest version](#upgrade-to-the-latest-version)\n- [Community](#community)\n- [Development](#development)\n\t- [Requirements](#requirements)\n\t- [Building](#building)\n\t- [Testing](#testing)\n\t\t- [Integration tests](#integration-tests)\n\t\t- [Go Version Support](#go-version-support)\n\t- [Commit Messages](#commit-messages)\n\t\t- [Format](#format)\n\t\t- [Scope](#scope)\n\t- [Documentation](#documentation)\n- [Community Support](#community-support)\n- [Issues / Enhancement Requests](#issues--enhancement-requests)\n- [Contributing](#contributing)\n- [Open Source License](#open-source-license)\n\n\u003cbr\u003e\n\n## Getting Started and Example Usage\n\nFollow the steps below to add `github.com/newrelic/newrelic-client-go` as a dependency in your Go project.\n\n1. In the root directory of your project, run `go get github.com/newrelic/newrelic-client-go@latest`. This will update your `go.mod` file with the latest version `newrelic-client-go`.\n\n\n2. Import `newrelic-client-go` in your project code.\n    ```go\n    package main\n\n    import \"github.com/newrelic/newrelic-client-go/v2/newrelic\"\n\n    func main() {\n      // Initialize the client.\n      client, err := newrelic.New(newrelic.ConfigPersonalAPIKey(os.Getenv(\"NEW_RELIC_API_KEY\")))\n      if err != nil {\n        // ...\n      }\n    }\n    ```\n\n3. Run `go mod tidy`. This will ensure all your dependencies are in sync with your code.\n4. Your module's `go.mod` file should now be updated with the latest version of the client and should look similar to the following example (version number is hypothetical in the example below).\n    ```\n    module example.com/yourmodule\n\n    go 1.24\n\n    require (\n      github.com/newrelic/newrelic-client-go/v2 v2.0.1\n    )\n    ```\n5. The example below demonstrates fetching New Relic entities.\n   ```go\n    package main\n\n    import (\n      \"fmt\"\n      \"os\"\n\n      log \"github.com/sirupsen/logrus\"\n\n      \"github.com/newrelic/newrelic-client-go/v2/newrelic\"\n      \"github.com/newrelic/newrelic-client-go/v2/pkg/entities\"\n    )\n\n    func main() {\n      // Initialize the client.\n      client, err := newrelic.New(newrelic.ConfigPersonalAPIKey(os.Getenv(\"NEW_RELIC_API_KEY\")))\n      if err != nil {\n        log.Fatal(\"error initializing client:\", err)\n      }\n\n      // Search the current account for entities by name and type.\n      queryBuilder := entities.EntitySearchQueryBuilder{\n        Name: \"Example entity\",\n        Type: entities.EntitySearchQueryBuilderTypeTypes.APPLICATION,\n      }\n\n      entitySearch, err := client.Entities.GetEntitySearch(\n        entities.EntitySearchOptions{},\n        \"\",\n        queryBuilder,\n        []entities.EntitySearchSortCriteria{},\n      )\n      if err != nil {\n        log.Fatal(\"error searching entities:\", err)\n      }\n\n      fmt.Printf(\"%+v\\n\", entitySearch.Results.Entities)\n    }\n    ```\n\n\n## Upgrade to the latest version\n\n1. Run the following command to tell Go to download the latest version. You can also check the latest version out in [this page](https://pkg.go.dev/github.com/newrelic/newrelic-client-go/v2/newrelic).\n   ```\n   go get github.com/newrelic/newrelic-client-go/v2@latest\n   ```\n2. Run `go mod tidy` to sync your dependencies with your code.\n3. Confirm your `go.mod` file is referencing the [latest version](https://github.com/newrelic/newrelic-client-go/releases/latest).\n\n\n## Community\n\nNew Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices.\n\n- [Issues or Enhancement Requests](https://github.com/newrelic/newrelic-client-go/issues/new/choose) - Issues and enhancement requests can be submitted in the Issues tab of this repository. Please search for and review the existing open issues before submitting a new issue.\n- [Contributors Guide](CONTRIBUTING.md) - Contributions are welcome.\n- [Community discussion board](https://discuss.newrelic.com/c/build-on-new-relic/developer-toolkit) - Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub.\n\nKeep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. If you'd like to execute our corporate CLA, or if you have any questions, please drop us an email at opensource@newrelic.com.\n\n## Development\n\n### Requirements\n\n- Go 1.24+\n- GNU Make\n- git\n\n### Building\n\nThis package does not generate any direct usable assets (it's a library). You can still run the build scripts to validate your code, and generate coverage information.\n\n```bash\n# Default target is 'build'\n$ make\n\n# Explicitly run build\n$ make build\n\n# Locally test the CI build scripts\n$ make build-ci\n```\n\n### Testing\n\nBefore contributing, all linting and tests must pass.\n\nTests can be run directly via:\n\n```bash\n# Tests and Linting\n$ make test\n\n# Only unit tests\n$ make test-unit\n\n# Only integration tests\n$ make test-integration\n```\n\n#### Integration tests\n\nIntegration tests communicate with the New Relic API, and therefore require proper\naccount credentials to run properly. The suite makes use of secrets, which will\nneed to be configured in the environment or else the integraiton tests will be skipped\nduring a test run. To run the integration test suite, the following secrets will\nneed to be configured:\n\n```bash\nNEW_RELIC_ACCOUNT_ID\nNEW_RELIC_API_KEY\nNEW_RELIC_INSIGHTS_INSERT_KEY\nNEW_RELIC_LICENSE_KEY\nNEW_RELIC_REGION\nNEW_RELIC_TEST_USER_ID\n```\n\nOptional for debugging (defaults to `debug`):\n\n```bash\nNEW_RELIC_LOG_LEVEL=trace\n```\n\n#### Go Version Support\n\nWe'll aim to support the latest supported release of Go, along with the\nprevious release. This doesn't mean that building with an older version of Go\nwill not work, but we don't intend to support a Go version in this project that\nis not supported by the larger Go community. Please see the [Go\nreleases][go_releases] page for more details.\n\n### Commit Messages\n\nUsing the following format for commit messages allows for auto-generation of\nthe [CHANGELOG](CHANGELOG.md):\n\n#### Format\n\n`\u003ctype\u003e(\u003cscope\u003e): \u003csubject\u003e`\n\n| Type       | Description           | Change log? |\n| ---------- | --------------------- | :---------: |\n| `chore`    | Maintenance type work |     No      |\n| `docs`     | Documentation Updates |     Yes     |\n| `feat`     | New Features          |     Yes     |\n| `fix`      | Bug Fixes             |     Yes     |\n| `refactor` | Code Refactoring      |     No      |\n\n#### Scope\n\nThis refers to what part of the code is the focus of the work. For example:\n\n**General:**\n\n- `build` - Work related to the build system (linting, makefiles, CI/CD, etc)\n- `release` - Work related to cutting a new release\n\n**Package Specific:**\n\n- `newrelic` - Work related to the New Relic package\n- `http` - Work related to the `internal/http` package\n- `alerts` - Work related to the `pkg/alerts` package\n\n### Documentation\n\n**Note:** This requires the repo to be in your GOPATH [(godoc issue)](https://github.com/golang/go/issues/26827)\n\n```bash\n$ make docs\n```\n\n### Releasing\n\nReleases are automated via the Release Github Action on merges to the default branch.  No user interaction is required.\n\nUsing [svu](https://github.com/caarlos0/svu), commit messages are parsed to identify if a new release is needed, and to what extent.  Here's the breakdown:\n\n| Commit message                                                                         | Tag increase |\n| -------------------------------------------------------------------------------------- | ------------ |\n| `fix: fixed something`                                                                 | Patch        |\n| `feat: added new button to do X`                                                       | Minor        |\n| `fix: fixed thing xyz`\u003cbr\u003e\u003cbr\u003e`BREAKING CHANGE: this will break users because of blah` | Major        |\n| `fix!: fixed something`                                                                | Major        |\n| `feat!: added blah`                                                                    | Major        |\n| `chore: foo`                                                                           | Nothing      |\n| `refactor: updated bar`                                                                | Nothing      |\n\n\n## Community Support\n\nNew Relic hosts and moderates an online forum where you can interact with New Relic employees as well as other customers to get help and share best practices. Like all New Relic open source community projects, there's a related topic in the New Relic Explorers Hub. You can find our team's project topic/threads here:\n\n[Developer Toolkit](https://discuss.newrelic.com/t/about-the-developer-toolkit-category/90159)\n\nPlease do not report issues with Top to New Relic Global Technical Support. Instead, visit the [`Explorers Hub`](https://discuss.newrelic.com/c/build-on-new-relic) for troubleshooting and best-practices.\n\n## Issues / Enhancement Requests\n\nIssues and enhancement requests can be submitted in te [Issues tab of this repository](../../issues). Please search for and review the existing open issues before submitting a new issue.\n\n## Contributing\n\nContributions are welcome (and if you submit a Enhancement Request, expect to be invited to contribute it yourself :grin:). Please review our [Contributors Guide](CONTRIBUTING.md).\n\nKeep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. If you'd like to execute our corporate CLA, or if you have any questions, please drop us an email at opensource@newrelic.com.\n\n## Open Source License\n\nThis project is distributed under the [Apache 2 license](LICENSE).\n\n[go_releases]: https://github.com/golang/go/wiki/Go-Release-Cycle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewrelic%2Fnewrelic-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewrelic%2Fnewrelic-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewrelic%2Fnewrelic-client-go/lists"}