Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 3.56 KB

File metadata and controls

73 lines (51 loc) · 3.56 KB

Changelog

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

Added

  • Add mod_log_mysql module: batch idempotent write (INSERT ... ON DUPLICATE KEY UPDATE) of AI access logs to the MySQL table bfe_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 by mod_kafka (API kept via type aliases) and mod_log_mysql.
  • Add integration test scenario LR03 (basic write, idempotent replay, zero-value-to-null, batch split) against real MySQL via LR_MYSQL_DSN or testcontainers; add module doc, sys_design docs, and conf/mod_log_mysql/mod_log_mysql.conf template.

Changed

  • Rename the module from github.com/bfenetworks/log-reader to github.com/rainway-ai-gateway/log-reader.

v1.3.0 - 2026-08-31

Added

  • Register AI observability fields from bfe-access-pb v0.3.5: ai_image_input_tokens, ai_video_count.

Changed

  • Upgrade bfe-access-pb dependency from v0.3.4 to v0.3.5.

v1.2.0 - 2026-08-29

Added

  • Register missing AI observability fields: ai_protocol, ai_mode, ai_audio_input_tokens, ai_audio_output_tokens, ai_image_count.
  • Support ai_cache_read_tokens and ai_cache_write_tokens output fields.

Changed

  • Update ai_apikeytags output format from array of objects to level-based object (level1~level5).
  • Upgrade bfe-access-pb dependency from v0.2.0 to v0.3.4.
  • Upgrade bfe dependency to v1.8.6.

v1.1.0 - 2026-08-21

Added

  • 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, and ai_auth_hit_quota_plans.
  • Add HttpAddr config 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/).

Changed

  • Upgrade bfe-access-pb from 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 bfe dependency to the latest v1.8.5 branch version.
  • Migrate github.com/baidu/go-lib dependency to github.com/bfenetworks/go-lib.

v1.0.0 - 2026-07-20

Added

  • 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.