Skip to content

okravets/c-sdk

This branch is 1 commit behind newrelic/c-sdk:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Amanda Murphyjenkins-build-bot
Amanda Murphy
and
jenkins-build-bot
Jan 8, 2020
69d7340 · Jan 8, 2020

History

47 Commits
Jun 4, 2019
Oct 10, 2019
Apr 19, 2019
Jan 8, 2020
Jan 8, 2020
Jan 8, 2020
Apr 19, 2019
Oct 10, 2019
May 2, 2019
Jan 8, 2020
Apr 19, 2019
Apr 19, 2019
Jan 8, 2020
Apr 19, 2019
Oct 10, 2019
Jan 8, 2020
May 2, 2019
Apr 19, 2019
Jan 8, 2020

Repository files navigation

New Relic C SDK

This is the New Relic C SDK! If your application does not use other New Relic APM agent languages, you can use the C SDK to take advantage of New Relic's monitoring capabilities and features to instrument a wide range of applications.

Build Status

Need Help?

Recommendations for learning more:

Come work with us!

We’re hiring a software engineer to join us in shaping the future of the PHP Agent and the C SDK. If you’re a C developer interested in the Agent Engineering world, apply here.

Contributing

We'd love to get your contributions to improve the C SDK! Keep in mind 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 [email protected].

Requirements

The C SDK works on 64-bit Linux operating systems with:

  • gcc 4.8 or higher
  • glibc 2.17 or higher
  • Kernel version 2.6.26 or higher
  • libpcre 8.20 or higher
  • libpthread

Running unit tests requires cmake 2.8 or higher.

Compiling the New Relic daemon requires Go 1.7 or higher.

Building the C SDK

If your system meets the requirements, building the C SDK and daemon should be as simple as:

make

This will create two files in this directory:

  • libnewrelic.a: the static C SDK library, ready to link against.
  • newrelic-daemon: the daemon binary, ready to run.

You can start the daemon in the foreground with:

./newrelic-daemon -f --logfile stdout --loglevel debug

Then you can invoke your instrumented application. Your application, which makes C SDK API calls, reports data to the daemon over a socket; in turn, the daemon reports the data to New Relic.

Tests

To compile and run the unit tests:

make run_tests

Or, just to compile them:

make tests

Licensing

The New Relic C SDK is licensed under the Apache 2.0 License

The C SDK also uses source code from third party libraries. Full details on which libraries are used and the terms under which they are licensed can be found in the third party notices document.

About

New Relic C SDK

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 88.9%
  • Makefile 6.1%
  • C++ 5.0%