terraform-provider-dynatrace
terraform-provider-dynatrace copied to clipboard
Unable to create web-application of type MANUALLY_INJECTED
Describe the bug I tried to create web-application of type MANUALLY_INJECTED but it fail with error. Basically it is injecting three parameters with are not relevant for creating such type of web-app.
To Reproduce Steps to reproduce the behavior: Steps are very simple. Just change type = "MANUALLY_INJECTED" and try to create web-app. It will gives you error.
Expected behavior Web-application module should support both type of app MANUAL and AUTOMATIC.
Additional context I am providing you fields which are irrelevant and should not be automatically inject when type is MANUAL. MANUALLY_INJECTED
libraryFileLocation library_file_location browserRestrictionSettings browser_restriction_settings ipAddressRestrictionSettings ip_address_restriction_settings
Current is inject these fields with below values:
- "libraryFileLocation": "",
- "ipAddressRestrictionSettings": { "mode": "EXCLUDE", "ipAddressRestrictions": [] },
- "browserRestrictionSettings": { "mode": "EXCLUDE", "browserRestrictions": [] },
Thanks for reporting this @ashishamway It will be taken care of by the end of next week.
Hi @ashishamway,
This issue was left open but I believe it was resolved at some point based off of a quick test I executed below. Please feel free to reopen the ticket if you continue to encounter issues.
Thanks! Kodai
resource "dynatrace_web_application" "TerraformIssue156" {
name = "TerraformIssue156"
type = "MANUALLY_INJECTED"
cost_control_user_session_percentage = 100
load_action_key_performance_metric = "VISUALLY_COMPLETE"
real_user_monitoring_enabled = true
xhr_action_key_performance_metric = "VISUALLY_COMPLETE"
custom_action_apdex_settings {
frustrating_fallback_threshold = 12000
frustrating_threshold = 12000
tolerated_fallback_threshold = 3000
tolerated_threshold = 3000
}
load_action_apdex_settings {
frustrating_fallback_threshold = 12000
frustrating_threshold = 12000
tolerated_fallback_threshold = 3000
tolerated_threshold = 3000
}
monitoring_settings {
add_cross_origin_anonymous_attribute = true
cache_control_header_optimizations = true
# cookie_placement_domain = ""
# correlation_header_inclusion_regex = ""
# custom_configuration_properties = ""
# exclude_xhr_regex = ""
# fetch_requests = false
injection_mode = "CODE_SNIPPET"
monitoring_data_path = "https://xxxxxxxxxx.bf.dynatrace.com/bf"
script_tag_cache_duration_in_hours = 1
# secure_cookie_attribute = false
# server_request_path_id = ""
# xml_http_request = false
advanced_javascript_tag_settings {
# instrument_unsupported_ajax_frameworks = false
max_action_name_length = 100
max_errors_to_capture = 10
# special_characters_to_escape = ""
# sync_beacon_firefox = false
# sync_beacon_internet_explorer = false
additional_event_handlers {
# blur = false
# change = false
# click = false
max_dom_nodes = 5000
# mouseup = false
# to_string_method = false
# use_mouse_up_event_for_clicks = false
}
global_event_capture_settings {
# additional_event_captured_as_user_input = ""
click = true
doubleclick = true
keydown = true
keyup = true
mousedown = true
mouseup = true
scroll = true
}
}
content_capture {
javascript_errors = true
visually_complete_and_speed_index = true
resource_timing_settings {
instrumentation_delay = 50
# non_w3c_resource_timings = false
w3c_resource_timings = true
}
timeout_settings {
temporary_action_limit = 0
temporary_action_total_timeout = 100
# timed_action_support = false
}
}
javascript_framework_support {
# active_x_object = false
# angular = false
# dojo = false
# extjs = false
# icefaces = false
# jquery = false
# moo_tools = false
# prototype = false
}
}
session_replay_config {
# enabled = false
cost_control_percentage = 100
enable_css_resource_capturing = true
}
user_action_naming_settings {
ignore_case = true
query_parameter_cleanups = [ "cfid", "phpsessid", "__sid", "cftoken", "sid" ]
split_user_actions_by_domain = true
# use_first_detected_load_action = false
}
waterfall_settings {
resource_browser_caching_threshold = 50
resources_threshold = 100000
slow_cnd_resources_threshold = 200000
slow_first_party_resources_threshold = 200000
slow_third_party_resources_threshold = 200000
speed_index_visually_complete_ratio_threshold = 50
uncompressed_resources_threshold = 860
}
xhr_action_apdex_settings {
frustrating_fallback_threshold = 12000
frustrating_threshold = 12000
tolerated_fallback_threshold = 3000
tolerated_threshold = 3000
}
}