You can use New Relic's change tracking feature with GitHub Actions to monitor the impact of changes on your customers and systems. GitHub Actions integration allows you to automatically track changes during your release pipeline and view the results in New Relic.
New Relic's GitHub Action supports two approaches:
- Change tracking events (Recommended): The modern approach that provides flexibility to track any type of change, including deployments, feature flags, configuration changes, and business events
- Change tracking deployments (Legacy): The traditional deployment-focused approach for tracking application deployments
Prerequisites
- GitHub repository with Actions enabled
- New Relic personal API key
- Entity GUID or entity search query for your application
GitHub secrets setup
Configure these GitHub secrets in your repository:
NEW_RELIC_API_KEY: Your New Relic personal API keyNEW_RELIC_DEPLOYMENT_ENTITY_GUID: New Relic Entity GUID to create markers on
Sugerencia
For multiple applications, use descriptive secret names like NEW_RELIC_DEPLOYMENT_ENTITY_GUID_App123, NEW_RELIC_DEPLOYMENT_ENTITY_GUID_App456, etc.
Choose your tracking method
The change tracking events provide a comprehensive change tracking with flexible categorization, custom attributes, and entity search capabilities. Use this method for any type of change including deployments, feature flags, business events, and operational changes.
Examples
Legacy method specifically designed for deployment tracking. Use this method if you need compatibility with existing deployment-focused workflows.
Sugerencia
New Relic recommends migrating to change tracking events using changeTrackingCreateEvent for better flexibility and feature support. Deployment markers will continue to work but have limited functionality compared to change events.