Skip to content

shoreline2/openresty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Openresty

The purpose of this repository is to add the Nginx OTEL module to an Openresty Docker image.

Local testing

  1. Prerequisites:
    • Docker and Docker Compose
  2. In a terminal window, start the Openresty container:
    docker compose up
    
  3. In a new terminal window, send a request to the container:
    curl localhost
    
  4. Observe the logs from the Openresty container. The purpose of this test is to verify the OTEL module starts.
    docker compose up
    ...
    Attaching to openresty-1
    openresty-1  | 172.18.0.1 - - [21/Jul/2025:14:09:01 +0000] "GET / HTTP/1.1" 200 13 "-" "curl/8 5.0"
    openresty-1  | 2025/07/21 14:09:04 [error] 7#11: OTel export failure: failed to connect to all addresses; last error: UNKNOWN: Failed to connect to remote host: Connection refused
    
    An OTEL export failure is expected since no OTEL collector has been setup, but it indicates the module is functioning correctly.

About

Modified Openresty Docker image

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors