Skip to content

Commit

Permalink
[APM] Add log_level/sanitize_field_names config options to Python Age…
Browse files Browse the repository at this point in the history
…nt (#84810)

* [APM] Add log_level config option to Python Agent

* Add sanitize_field_names as well
  • Loading branch information
basepi authored Dec 3, 2020
1 parent e72d174 commit eb46f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const generalSettings: RawSettingDefinition[] = [
{ text: 'critical', value: 'critical' },
{ text: 'off', value: 'off' },
],
includeAgents: ['dotnet', 'ruby', 'java'],
includeAgents: ['dotnet', 'ruby', 'java', 'python'],
},

// Recording
Expand Down Expand Up @@ -235,7 +235,7 @@ export const generalSettings: RawSettingDefinition[] = [
'Sometimes it is necessary to sanitize, i.e., remove, sensitive data sent to Elastic APM. This config accepts a list of wildcard patterns of field names which should be sanitized. These apply to HTTP headers (including cookies) and `application/x-www-form-urlencoded` data (POST form fields). The query string and the captured request body (such as `application/json` data) will not get sanitized.',
}
),
includeAgents: ['java'],
includeAgents: ['java', 'python'],
},

// Ignore transactions based on URLs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ describe('filterByAgent', () => {
'api_request_time',
'capture_body',
'capture_headers',
'log_level',
'recording',
'sanitize_field_names',
'span_frames_min_duration',
'transaction_max_spans',
'transaction_sample_rate',
Expand Down

0 comments on commit eb46f3a

Please sign in to comment.