All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
v1.4.0 - 2026-09-24
- Add
mod_log_mysqlmodule: batch idempotent write (INSERT ... ON DUPLICATE KEY UPDATE) of AI access logs to the MySQL tablebfe_ai_request_log(89 columns), with a queue + single-writer goroutine and backoff retry. - Extract shared protobuf field extraction into
reader_modules/mod_fields, reused bymod_kafka(API kept via type aliases) andmod_log_mysql. - Add integration test scenario LR03 (basic write, idempotent replay, zero-value-to-null, batch split) against real MySQL via
LR_MYSQL_DSNor testcontainers; add module doc, sys_design docs, andconf/mod_log_mysql/mod_log_mysql.conftemplate.
- Rename the module from
github.com/bfenetworks/log-readertogithub.com/rainway-ai-gateway/log-reader.
v1.3.0 - 2026-08-31
- Register AI observability fields from bfe-access-pb v0.3.5:
ai_image_input_tokens,ai_video_count.
- Upgrade
bfe-access-pbdependency from v0.3.4 to v0.3.5.
v1.2.0 - 2026-08-29
- Register missing AI observability fields:
ai_protocol,ai_mode,ai_audio_input_tokens,ai_audio_output_tokens,ai_image_count. - Support
ai_cache_read_tokensandai_cache_write_tokensoutput fields.
- Update
ai_apikeytagsoutput format from array of objects to level-based object (level1~level5). - Upgrade
bfe-access-pbdependency from v0.2.0 to v0.3.4. - Upgrade
bfedependency to v1.8.6.
v1.1.0 - 2026-08-21
- Add AI observability fields from bfe-access-pb v0.2.0:
ai_provider,ai_retry_count,ai_cost_value,ai_cost_currency,ai_route_rule_hits,ai_cluster_key_names, andai_auth_hit_quota_plans. - Add
HttpAddrconfig option to bind the web monitor server to a specific listen address. - Add integration test suite with a mock Kafka broker, covering the end-to-end access log flow (scenario LR01 basic flow).
- Add configuration documentation (
doc/configuration/) and output field reference (doc/fields/).
- Upgrade
bfe-access-pbfrom v0.1.0 to v0.2.0. - Rename AI observability fields to align with bfe-access-pb v0.2.0:
ai_apikey→ai_apikey_id,ai_mapped_model→ai_target_model,ai_prompt_tokens→ai_input_tokens. - Upgrade
bfedependency to the latest v1.8.5 branch version. - Migrate
github.com/baidu/go-libdependency togithub.com/bfenetworks/go-lib.
v1.0.0 - 2026-07-20
- Core log reader with protobuf-encoded BFE access log parsing and tailing support.
- Module framework (
reader_module) for extensible log processing pipelines. - Config loading system (
reader_conf) with support for basic and access-pb config types. - Built-in Kafka output module (
mod_kafka) for forwarding parsed access logs to Kafka.