CHANGELOG.md

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

---

## [2.0.0] - 2024-12-11

### Changed

- Removed the following, in favour of
  - `http.client.ip` => `client.address`
  - `http.flavor` => `network.protocol.name`
  - `http.method` => `http.request.method`
  - `http.scheme` => `url.scheme`
  - `http.status_code` => `http.response.status_code`
  - `http.target` => split in `url.path` and `url.query`
  - `http.user.agent` => `user_agent.original`
  - `net.host.name` => `server.address`
  - `net.host.port` => `server.port`
  - `net.sock.peer.port` => `network.peer.port`
  - `net.sock.peer.addr` => `network.peer.address`

---

## [1.1.3] - 2023-04-04

### Changed

- Fix versioning of `telemetry` dependency

## [1.1.2] - 2023-03-23

### Added

- Set span status to error if the returned http status code is 5xx

## [1.1.1] - 2023-03-09

### Added

- Usage of the `opentelemetry_semantic_conversion` auto-generated library to
  ensure proper conventions are followed

### Changed

- Changed client attributes to proper server attributes
  - `"net.peer.ip"` is now `"net.sock.peer.addr"`
  - `"net.peer.port"` is now `"net.sock.peer.port"`

### Removed

- `"http.host"` attribute as it is non standard, and already covered by
  `"net.host.name"`

## [1.1.0] - 2022-09-21

### Changed

- Teleplug does not set opentelemetry-related Logger metadata anymore, because
  The OpenTelemetry API/SDK itself
  [does that automatically since 1.1.0](https://github.com/open-telemetry/opentelemetry-erlang/pull/394).
  If you're upgrading to Teleplug 1.1.0, it is therefore recommended to also
  upgrade to OpenTelemetry API 1.1.0

[Unreleased]: https://github.com/primait/teleplug/compare/2.0.0...HEAD
[2.0.0]: https://github.com/primait/teleplug/compare/1.1.3...2.0.0
[1.1.3]: https://github.com/primait/teleplug/compare/1.1.2...1.1.3
[1.1.2]: https://github.com/primait/teleplug/compare/1.1.1...1.1.2
[1.1.1]: https://github.com/primait/teleplug/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/primait/teleplug/releases/tag/1.1.0