Page 1
© All rights reserved. Zend Technologies, Inc.
Better Bug-Stomping
with Zend Studio and
Zend Server
Kevin Schroeder - Technology Evangelist
To watch the webinar recording: http://bit.ly/zQxd8K
You want to do
WHAT with PHP?
The IBM i Programmer’s
Guide to PHP Coronal Loop Safari ?
Page 2
© All rights reserved. Zend Technologies, Inc.
Zend Studio 9: Features at a glance
Page 3
© All rights reserved. Zend Technologies, Inc.
Zend Server 5.6: Features at a glance
Deployment
Event Monitoring
Job Queuing (w/ API)
Caching
Page 4
© All rights reserved. Zend Technologies, Inc.
Deploying to development
Page 5
© All rights reserved. Zend Technologies, Inc.
Deploying to Development
• API Keys
• Associating with a local project
Page 6
© All rights reserved. Zend Technologies, Inc.
Using the Zend Server Web API
Page 7
© All rights reserved. Zend Technologies, Inc.
Why use the Web APIs?
• Automate event collection after a CI run
• Provide access to event or code trace data
• Run error stats on servers
• Automate backing up code trace data
• Import event data into a database
Page 8
© All rights reserved. Zend Technologies, Inc.
Using the web API
• http://files.zend.com/help/Zend-Server/zend-
server.htm#web_api_reference_guide.htm
Or http://bit.ly/ZSMonitorAPI
• https://github.com/kschroeder/ZendServer-JobQueue-Job-
API
Or http://bit.ly/schradeAPI
Page 9
© All rights reserved. Zend Technologies, Inc.
Event Monitoring
Page 10
© All rights reserved. Zend Technologies, Inc.
Event Monitoring API
Page 11
© All rights reserved. Zend Technologies, Inc.
Event Monitoring API/Directives
• API
Aggregation Hints
• zend_monitor_set_aggregation_hint($hint)
Custom Events
• zend_monitor_custom_event($class, $text, $user_data)
• Directives
Zend_monitor.event_generate_trace_file
zend_monitor.developer_mode
Page 12
© All rights reserved. Zend Technologies, Inc.
Event Monitoring Web API
Page 13
© All rights reserved. Zend Technologies, Inc.
• Get a list of events
• Getting request info
• API Methods
Get Request Summary - monitorGetRequestSummary
Download Trace File - monitorDownloadTraceFile
Start a Debug - monitorStartDebug
Get Issues List - monitorGetIssuesListByPredefinedFilter
Get Issue Details - monitorGetIssuesDetails
Get Group Details - monitorGetEventGroupDetails
Export Issues - monitorExportIssueByEventsGroup
Change Status - monitorChangeIssueStatus
Page 14
© All rights reserved. Zend Technologies, Inc.
Code Tracing
Page 15
© All rights reserved. Zend Technologies, Inc.
Code Tracing Web API
Page 16
© All rights reserved. Zend Technologies, Inc.
• Disable Tracing - codetracingDisable
• Enable Tracing - codetracingEnable
• Check if Tracing is enabled - codetracingIsEnabled
• Create a Trace - codetracingCreate
• Delete a Trace - codetracingDelete
• List all Traces - codetracingList
• Download Trace files - codetracingDownloadTraceFile
Page 17
© All rights reserved. Zend Technologies, Inc.
Zend SDK
Page 18
© All rights reserved. Zend Technologies, Inc.
• Java based (why?)
• Download from http://code.google.com/p/zend-sdk/
• Coming (very) soon – Manage Events
Page 19
© All rights reserved. Zend Technologies, Inc.
New integration coming soon…
Page 20
© All rights reserved. Zend Technologies, Inc.
Page 21
© All rights reserved. Zend Technologies, Inc.
Contact
@kpschrade @zend
Zend Technologies
http://www.zend.com/
To watch the webinar recording: http://bit.ly/zQxd8K