Coder Social home page Coder Social logo

letapm's Introduction

┏┓                             
┃┃┏━┓┏━━┓┏━┓┏━┓┏━━┓ ┏━┓┏━┓┏━━┓
┃┃┃┻┫┗┓┏┛┃━┃┃┃┃┃┃┃┃┏┓┃┣┫┃┃┃┃┃┃┃
┗┛┗━┛ ┗┛ ┗┻┛┃┏┛┗┻┻┛┗┛┗━┛┗━┛┗┻┻┛
            ┗┛                 

项目暂停进入维护中,开源 iOS SDK代码供各位学习,交流。喜欢就给个星 :)

#LetAPM接入说明

sdk的作用是发现在真实用户那里出现的所有的http相关的问题, 会把http出错时的用户环境、出错码、错误内容等信息上报,以真实用户的使用数据来并评估http的性能,供开发人员快速定位问题

  • 打开http://www.letapm.com, 使用邮箱注册一个账号
  • 新建app得到appkey
  • 将Letapm.framework引入到xcode工程
  • 在工程Build Settings中选择Other Linker Flags,添加-ObjC编译项目
  • 添加头文件
#import <Letapm/Letapm.h>
  • 初始化LetAPM,在application:(UIApplication *)application didFinishLaunchingWithOptions方法里添加以下代码
    // [LetAPM showLog:YES]; // 打开日志输出默认为NO
    [LetAPM initWithAppKey:@"appkey" withAppSecret:@"appsecret"];  

目前使用时将appsecret的值也传为appkey的值, 这两个值传入相同的内容

#注意事项

  • 支持ios6以上
  • SDK的初始化方法在app启动的过程调用,并尽量早一点执行初始化方法
  • iOS9的系统需要设置letapm.com域名使用http连接

letapm's People

Contributors

wlevene avatar

Watchers

James Cloos avatar 郭宇翔 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.