Skip to content

Commit

Permalink
feat: Nginx stop logs (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
yodigos authored Sep 29, 2024
1 parent 7a84a2d commit 6e20ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instrumentor/instrumentation/instrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func ApplyInstrumentationDevicesToPodTemplate(original *corev1.PodTemplateSpec,
var modifiedContainers []corev1.Container
for _, container := range original.Spec.Containers {
containerLanguage := getLanguageOfContainer(runtimeDetails, container.Name)
if containerLanguage == nil || *containerLanguage == common.UnknownProgrammingLanguage || *containerLanguage == common.IgnoredProgrammingLanguage {
if containerLanguage == nil || *containerLanguage == common.UnknownProgrammingLanguage || *containerLanguage == common.IgnoredProgrammingLanguage || *containerLanguage == common.NginxProgrammingLanguage {
// always patch the env vars, even if the language is unknown or ignored.
// this is necessary to sync the existing envs with the missing language if changed for any reason.
err = patchEnvVarsForContainer(runtimeDetails, &container, nil, *containerLanguage, manifestEnvOriginal)
Expand Down

0 comments on commit 6e20ace

Please sign in to comment.