kartmax/telescope 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kartmax/telescope

最新稳定版本:v1.0.19

Composer 安装命令:

composer require kartmax/telescope

包简介

A fork of Laravel Telescope fine tuned for KartmaX

README 文档

README

Logo KartmnaX Telescope

Build Status Total Downloads Latest Stable Version License

Introduction

KartmnaX Telescope is an elegant debug assistant for the Laravel framework, building on the original Laravel Telescope. In addition to all the features of Telescope, KartmnaX Telescope introduces support for S3 storage and enhanced environment-based configuration, making it suitable for distributed and cloud-native environments.

Key Features

  • All features of Laravel Telescope
  • S3 Storage Support: Store Telescope entries in AWS S3 (or any compatible object storage)
  • Custom Environment Tags: Add static and dynamic tags to every entry for better filtering and multi-tenant support
  • Production Enablement: Optionally enable Telescope in production with fine-grained control

S3 Storage Usage

To use S3 as the storage backend for KartmnaX Telescope, set the following in your .env:

TELESCOPE_DRIVER=s3
TELESCOPE_S3_DISK=s3           # The Laravel disk to use (default: s3)
TELESCOPE_S3_DIRECTORY=telescope # The directory/prefix in the bucket (default: telescope)

Ensure your config/filesystems.php is configured for your S3 disk.

Environment Variables

KartmnaX Telescope can be configured using the following environment variables:

# Enable/Disable Telescope
TELESCOPE_ENABLED=true

# Storage Configuration
TELESCOPE_DRIVER=s3
TELESCOPE_S3_DISK=s3           # The Laravel disk to use (default: s3)
TELESCOPE_S3_DIRECTORY=telescope # The directory/prefix in the bucket (default: telescope)

# Custom Tags Configuration
TELESCOPE_CUSTOM_STATIC_TAG='your service name'    # Static tag for all entries (e.g., service name)
TELESCOPE_CUSTOM_DYNAMIC_TAG='any dynamic app instance'  # Dynamic tag for entries (e.g., instance ID)

# Production and Performance Settings
TELESCOPE_ENABLED_IN_PROD=true  # Enable Telescope in production environment
TELESCOPE_CACHE_TTL=60         # Cache TTL in seconds for Telescope entries

Custom Tags

You can attach custom tags to every entry using the following configuration:

  • TELESCOPE_CUSTOM_STATIC_TAG: A static string tag (e.g., service name)
  • TELESCOPE_CUSTOM_DYNAMIC_TAG: A class name resolved from the container, whose value will be used as a tag (e.g., tenant/site token)

Production Usage

To enable KartmnaX Telescope in production, set:

TELESCOPE_ENABLED_IN_PROD=true

Access is still protected by the authorization gate.

Official Documentation

For general usage, see the Laravel Telescope documentation. For S3 and advanced configuration, refer to this README.

Contributing

Thank you for considering contributing to KartmnaX Telescope! Please see the Laravel contribution guide.

Code of Conduct

Please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

KartmnaX Telescope is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 85
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-28