﻿---
title: Upgrading to version 6 of the agent
description: Please upgrade to Python 3.6+ to continue to receive regular updates. If you are using a non-default sanitize_field_names config, please note that your...
url: https://www.elastic.co/elastic/docs-builder/docs/2863/reference/apm/agents/python/upgrading-6-x
products:
  - APM Agent
  - APM Python Agent
applies_to:
  - Serverless Observability projects: Generally available
  - Elastic Stack: Generally available
  - Application Performance Monitoring Agent for Python: Generally available
---

# Upgrading to version 6 of the agent
## Python 2 no longer supported

Please upgrade to Python 3.6+ to continue to receive regular updates.

## `SANITIZE_FIELD_NAMES` changes

If you are using a non-default `sanitize_field_names` config, please note that your entries must be surrounded with stars (e.g. `*secret*`) in order to maintain previous behavior.

## Tags removed (in favor of labels)

Tags were deprecated in the 5.x release (in favor of labels). They have now been removed.