Skip to content

Commit

Permalink
Harmonize var names with EMR
Browse files Browse the repository at this point in the history
  • Loading branch information
aboitreaud committed Dec 20, 2024
1 parent 2669262 commit 2fd9b74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/fleet/installer/setup/djm/databricks.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
)

const (
databricksInjectorVersion = "0.26.0-1"
databricksJavaVersion = "1.42.2-1"
databricksAgentVersion = "7.58.2-1"
databricksInjectorVersion = "0.26.0-1"
databricksJavaTracerVersion = "1.42.2-1"
databricksAgentVersion = "7.58.2-1"
)

var (
Expand Down Expand Up @@ -65,7 +65,7 @@ var (
Service: "databricks",
},
}
tracerEnvConfig = []common.InjectTracerConfigEnvVar{
tracerEnvConfigDatabricks = []common.InjectTracerConfigEnvVar{
{
Key: "DD_DATA_JOBS_ENABLED",
Value: "true",
Expand All @@ -81,7 +81,7 @@ var (
func SetupDatabricks(s *common.Setup) error {
s.Packages.Install(common.DatadogAgentPackage, databricksAgentVersion)
s.Packages.Install(common.DatadogAPMInjectPackage, databricksInjectorVersion)
s.Packages.Install(common.DatadogAPMLibraryJavaPackage, databricksJavaVersion)
s.Packages.Install(common.DatadogAPMLibraryJavaPackage, databricksJavaTracerVersion)

hostname, err := os.Hostname()
if err != nil {
Expand Down Expand Up @@ -172,7 +172,7 @@ func setupDatabricksDriver(s *common.Setup) {
s.Span.SetTag("spark_node", "driver")

s.Config.DatadogYAML.Tags = append(s.Config.DatadogYAML.Tags, "node_type:driver")
s.Config.InjectTracerYAML.AdditionalEnvironmentVariables = tracerEnvConfig
s.Config.InjectTracerYAML.AdditionalEnvironmentVariables = tracerEnvConfigDatabricks

var sparkIntegration common.IntegrationConfig
if os.Getenv("DRIVER_LOGS_ENABLED") == "true" {
Expand Down

0 comments on commit 2fd9b74

Please sign in to comment.