Skip to content

Commit

Permalink
headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bardabun committed May 26, 2024
1 parent a8f9c3a commit 6ce4cc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources-linux/otel/datasource_logs_utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function add_logs_exporter_to_otel_config {
return $EXIT_CODE
fi

set_yaml_file_field_value "$OTEL_EXPORTERS_DIR/logzio_logs.yaml" '.logzio/logs.user-agent' "$USER_AGENT_LOGS"
set_yaml_file_field_value "$OTEL_EXPORTERS_DIR/logzio_logs.yaml" '.logzio/logs.headers.user-agent' "$USER_AGENT_LOGS"
if [[ $? -ne 0 ]]; then
message="logs.bash ($EXIT_CODE): $(get_task_error_message)"
send_log_to_logzio "$LOG_LEVEL_ERROR" "$message" "$LOG_STEP_LOGS" "$LOG_SCRIPT_LOGS" "$func_name" "$AGENT_ID" "$PLATFORM" "$SUB_TYPE" "$CURRENT_DATA_SOURCE"
Expand Down
2 changes: 1 addition & 1 deletion resources-mac/otel/datasource_logs_utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function add_logs_exporter_to_otel_config {
return $EXIT_CODE
fi

set_yaml_file_field_value "$OTEL_EXPORTERS_DIR/logzio_logs.yaml" '.logzio/logs.user-agent' "$USER_AGENT_LOGS"
set_yaml_file_field_value "$OTEL_EXPORTERS_DIR/logzio_logs.yaml" '.logzio/logs.headers.user-agent' "$USER_AGENT_LOGS"
if [[ $? -ne 0 ]]; then
message="logs.bash ($EXIT_CODE): $(get_task_error_message)"
send_log_to_logzio "$LOG_LEVEL_ERROR" "$message" "$LOG_STEP_LOGS" "$LOG_SCRIPT_LOGS" "$func_name" "$AGENT_ID" "$PLATFORM" "$SUB_TYPE" "$CURRENT_DATA_SOURCE"
Expand Down

0 comments on commit 6ce4cc9

Please sign in to comment.